Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Open
Description
The doc ofitertools.filterfalse() showspredicate argument as shown below:
itertools.filterfalse(predicate, iterable)
But the docstring ofitertools.filterfalse() showsfunction argument instead ofpredicate argument as shown below:
fromitertoolsimportfilterfalseprint(help(filterfalse))# class filterfalse(builtins.object)# | filterfalse(function, iterable, /)# ...
So the docstring ofitertools.filterfalse() should showpredicate argument instead offunction argument for consistency as shown below:
fromitertoolsimportfilterfalseprint(help(filterfalse))# class filterfalse(builtins.object)# | filterfalse(predicate, iterable, /)# ...
In addition, boththe doc and docstring ofitertools.takewhile() properly showpredicate argument as shown below:
itertools.takewhile(predicate, iterable)
fromitertoolsimporttakewhileprint(help(takewhile))# class takewhile(builtins.object)# | takewhile(predicate, iterable, /)# ...
And, boththe doc and docstring ofitertools.dropwhile() properly showpredicate argument as shown below:
itertools.dropwhile(predicate, iterable)
fromitertoolsimportdropwhileprint(help(dropwhile))# class dropwhile(builtins.object)# | dropwhile(predicate, iterable, /)# ...
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Todo