mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-100776: Fix misleading default value in help(input) (#100788)
This commit is contained in:
parent
df3851fe4a
commit
a2141882f2
3 changed files with 5 additions and 4 deletions
|
@ -2063,7 +2063,7 @@ builtin_print_impl(PyObject *module, PyObject *args, PyObject *sep,
|
|||
/*[clinic input]
|
||||
input as builtin_input
|
||||
|
||||
prompt: object(c_default="NULL") = None
|
||||
prompt: object(c_default="NULL") = ""
|
||||
/
|
||||
|
||||
Read a string from standard input. The trailing newline is stripped.
|
||||
|
@ -2077,7 +2077,7 @@ On *nix systems, readline is used if available.
|
|||
|
||||
static PyObject *
|
||||
builtin_input_impl(PyObject *module, PyObject *prompt)
|
||||
/*[clinic end generated code: output=83db5a191e7a0d60 input=5e8bb70c2908fe3c]*/
|
||||
/*[clinic end generated code: output=83db5a191e7a0d60 input=159c46d4ae40977e]*/
|
||||
{
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
PyObject *fin = _PySys_GetAttr(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue