[Feature Request] Throw a warning if kwarg "_class=..." is given
Bug #2025089 reported by
Thelma Runyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When you only use bs4 occassionally, it's easy to forgot if the correct filter for functions like `soup.filter(...)` is `class_=...` or `_class=...`. If you provide `_class=...` instead of `class_=...`, then no results are returned and it's a serious hassle to debug.
Can BS4 throw a warning if someone tries to provide a `soup.filter(..., _class=
To post a comment you must log in.
I am OK with issuing a SyntaxWarning in this situation and otherwise maintaining the current behavior.