mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
bpo-29749: Update int() docstring (GH-565)
The docstring did not properly represent the fact that the argument to int() was positional-only.
This commit is contained in:
parent
370fd202f1
commit
390a0969c1
1 changed files with 1 additions and 1 deletions
|
|
@ -5334,7 +5334,7 @@ static PyGetSetDef long_getset[] = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(long_doc,
|
||||
"int(x=0) -> integer\n\
|
||||
"int([x]) -> integer\n\
|
||||
int(x, base=10) -> integer\n\
|
||||
\n\
|
||||
Convert a number or string to an integer, or return 0 if no arguments\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue