Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The doc ofitertools.filterfalse() showspredicate argument but the docstring showsfunction argument #138186

Open
Assignees
rhettinger
Labels
docsDocumentation in the Doc dir
@hyperkai

Description

@hyperkai

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

Labels

docsDocumentation in the Doc dir

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2026 Movatter.jp