ubuiltins.input: Say what it does.

The docstring said something about an argument, but not what this function is for.
This commit is contained in:
Laurens Valk
2021-08-05 12:32:47 +02:00
parent b3c5353dd6
commit b013204f88
+5 -3
View File
@@ -453,9 +453,11 @@ def input(prompt: _str) -> _str:
def input(*args) -> _str:
"""
If the prompt argument is present, it is written to standard output without
a trailing newline. The function then reads a line from input, converts it
to a string (stripping a trailing newline), and returns that.
Gets input from the user in the terminal window. This function waits until
the user presses :kbd:`Enter`. The input is returned as a string.
If the ``prompt`` argument is given, this is printed in the terminal window
first.
"""