Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
The documentation forinput when usinghelp(...) shows this:
>>>help(input)Helponbuilt-infunctioninputinmodulebuiltins:input(prompt=None,/)Readastringfromstandardinput.Thetrailingnewlineisstripped.Thepromptstring,ifgiven,isprintedtostandardoutputwithoutatrailingnewlinebeforereadinginput.IftheuserhitsEOF (*nix:Ctrl-D,Windows:Ctrl-Z+Return),raiseEOFError.On*nixsystems,readlineisusedifavailable.
This impliesinput() does the same asinput(None), but usinginput(None) actually doesinput("None"). It should probably be changed to showinput(prompt="", /) as the default argument instead.
Linked PRs
Metadata
Metadata
Assignees
Labels
No labels