Allow searching by CSS class using the keyword argument class_

Bug #1037624 reported by Leonard Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

PEP-8 says to avoid conflicts with Python keywords by adding a trailing underscore to conflicting variable names. Since searching by CSS class is such a common operation, it would be useful to allow class_='foo' to search the CSS class attribute.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.