diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2023-01-08 09:23:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 09:23:12 (GMT) |
commit | be7c19723fa3fea3a4efe5c9c795c1e4a2fc05f5 (patch) | |
tree | 272a9439e211632d0f2cae8ecea60d480338db6f /Python | |
parent | 87076d880cdd9f5537a6a27c1076bc6c7c1d2ee9 (diff) | |
download | cpython-be7c19723fa3fea3a4efe5c9c795c1e4a2fc05f5.zip cpython-be7c19723fa3fea3a4efe5c9c795c1e4a2fc05f5.tar.gz cpython-be7c19723fa3fea3a4efe5c9c795c1e4a2fc05f5.tar.bz2 |
[3.11] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100841)
(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 4 | ||||
-rw-r--r-- | Python/clinic/bltinmodule.c.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 94a7819..a3fdb39 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2065,7 +2065,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. @@ -2079,7 +2079,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( diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 5d9a16a..10cd6c8 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -843,7 +843,7 @@ exit: } PyDoc_STRVAR(builtin_input__doc__, -"input($module, prompt=None, /)\n" +"input($module, prompt=\'\', /)\n" "--\n" "\n" "Read a string from standard input. The trailing newline is stripped.\n" @@ -1045,4 +1045,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=cc844ea007c1241f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c45d5fe414f7a8d7 input=a9049054013a1b77]*/ |