Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Proposal: make new 'class_' etc. function arguments
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pavel Potoček  
View profile  
 More options Dec 19 2011, 10:29 am
From: Pavel Potoček <pavelpoto...@gmail.com>
Date: Mon, 19 Dec 2011 07:29:41 -0800 (PST)
Local: Mon, Dec 19 2011 10:29 am
Subject: Proposal: make new 'class_' etc. function arguments
I'm not sure if feature proposals fit in here, but I'll give it a
try:)

As is written in PEP 8, when the name of variable collides with a
keyword, use trailing underscore.

It would be nice if this feature was implemented also in
BeautifulSoup.

Yes I know that for this case there is an alternative construction
{"class": "foo"}, but this is waay too long to write:]. Trailing
underscores would be logical and I would like them very much:) I'm
sure others would anticipate 'em too.

And it's also PEP-conformal. :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron DeVore  
View profile  
 More options Dec 19 2011, 12:39 pm
From: Aaron DeVore <aaron.dev...@gmail.com>
Date: Mon, 19 Dec 2011 09:39:09 -0800
Local: Mon, Dec 19 2011 12:39 pm
Subject: Re: Proposal: make new 'class_' etc. function arguments
Not a comment on your proposal, just pointing this out: As a shortcut,
you can search by class name by using something like:

tag.findAll('tag-name', 'class-name')

It works for all find* searches.

2011/12/19 Pavel Potoček <pavelpoto...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »