Skip to content

The doc and docstring of generator.send() should show the same argument name #138902

Description

@hyperkai

The doc of generator.send() shows value argument as shown below:

generator.send(value)

But the docstring of generator.send() shows arg argument as shown below so they should show the same argument name for consistency:

def func():
    yield

gen = func()
print(help(gen.send))
# send(arg) -> send 'arg' into generator,

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesdocsDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions