Allow searching by CSS class using the keyword argument class_

Reported by Leonard Richardson on 2012-08-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
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  Edit
Everyone can see this information.

Other bug subscribers