Skip to content

Commit

Permalink
[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788
Browse files Browse the repository at this point in the history
) (#100842)

(cherry picked from commit a214188)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
  • Loading branch information
hauntsaninja authored Jan 8, 2023
1 parent fa8d396 commit a8702bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix misleading default value in :func:`input`'s ``__text_signature__``.
4 changes: 2 additions & 2 deletions Python/bltinmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ flush: whether to forcibly flush the stream.");
/*[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.
Expand All @@ -2048,7 +2048,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]*/
{
PyObject *fin = _PySys_GetObjectId(&PyId_stdin);
PyObject *fout = _PySys_GetObjectId(&PyId_stdout);
Expand Down
4 changes: 2 additions & 2 deletions Python/clinic/bltinmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8702bb

Please sign in to comment.