0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01: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:
svelankar 2017-03-08 19:29:01 -05:00 committed by Brett Cannon
parent 370fd202f1
commit 390a0969c1

View File

@ -5334,7 +5334,7 @@ static PyGetSetDef long_getset[] = {
}; };
PyDoc_STRVAR(long_doc, PyDoc_STRVAR(long_doc,
"int(x=0) -> integer\n\ "int([x]) -> integer\n\
int(x, base=10) -> integer\n\ int(x, base=10) -> integer\n\
\n\ \n\
Convert a number or string to an integer, or return 0 if no arguments\n\ Convert a number or string to an integer, or return 0 if no arguments\n\