Skip to content

Incorrect documentation for input parameter #100776

Closed
@SimpleArt

Description

@SimpleArt

The documentation for input when using help(...) shows this:

>>> help(input)
Help on built-in function input in module builtins:

input(prompt=None, /)
    Read a string from standard input.  The trailing newline is stripped.

    The prompt string, if given, is printed to standard output without a
    trailing newline before reading input.

    If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
    On *nix systems, readline is used if available.

This implies input() does the same as input(None), but using input(None) actually does input("None"). It should probably be changed to show input(prompt="", /) as the default argument instead.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions