Skip to content

Commit a8702bb

Browse files
authored
[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)
(cherry picked from commit a214188) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
1 parent fa8d396 commit a8702bb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix misleading default value in :func:`input`'s ``__text_signature__``.

Python/bltinmodule.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ flush: whether to forcibly flush the stream.");
20342034
/*[clinic input]
20352035
input as builtin_input
20362036
2037-
prompt: object(c_default="NULL") = None
2037+
prompt: object(c_default="NULL") = ""
20382038
/
20392039
20402040
Read a string from standard input. The trailing newline is stripped.
@@ -2048,7 +2048,7 @@ On *nix systems, readline is used if available.
20482048

20492049
static PyObject *
20502050
builtin_input_impl(PyObject *module, PyObject *prompt)
2051-
/*[clinic end generated code: output=83db5a191e7a0d60 input=5e8bb70c2908fe3c]*/
2051+
/*[clinic end generated code: output=83db5a191e7a0d60 input=159c46d4ae40977e]*/
20522052
{
20532053
PyObject *fin = _PySys_GetObjectId(&PyId_stdin);
20542054
PyObject *fout = _PySys_GetObjectId(&PyId_stdout);

Python/clinic/bltinmodule.c.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)