Incorrect example in documentation, tag['class'] returns a list
Bug #1631743 reported by
lonf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The documentation at https:/
tag['class']
# u'boldest'
but the actual result is a list:
tag['class']
# ['boldest']
Also in the next example
tag.attrs
returns {'class': ['boldest']} instead of {u'class': u'boldest'}.
description: | updated |
Changed in beautifulsoup: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Revision 431 corrects the documentation.