mirror of https://github.com/python/cpython
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
|
@ -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…
Reference in New Issue