Skip to content

Commit a214188

Browse files
authored
gh-100776: Fix misleading default value in help(input) (#100788)
1 parent df3851f commit a214188

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@ builtin_print_impl(PyObject *module, PyObject *args, PyObject *sep,
20632063
/*[clinic input]
20642064
input as builtin_input
20652065
2066-
prompt: object(c_default="NULL") = None
2066+
prompt: object(c_default="NULL") = ""
20672067
/
20682068
20692069
Read a string from standard input. The trailing newline is stripped.
@@ -2077,7 +2077,7 @@ On *nix systems, readline is used if available.
20772077

20782078
static PyObject *
20792079
builtin_input_impl(PyObject *module, PyObject *prompt)
2080-
/*[clinic end generated code: output=83db5a191e7a0d60 input=5e8bb70c2908fe3c]*/
2080+
/*[clinic end generated code: output=83db5a191e7a0d60 input=159c46d4ae40977e]*/
20812081
{
20822082
PyThreadState *tstate = _PyThreadState_GET();
20832083
PyObject *fin = _PySys_GetAttr(

Python/clinic/bltinmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)