Closed
Description
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
Labels
No labels