summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvelankar <siddharth.velankar@gmail.com>2017-03-09 00:29:01 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2017-03-09 00:29:01 (GMT)
commit390a0969c1206a37c86961ebf7ef3050681ed8dd (patch)
tree873a67245fc558de628e6a5cdf5a7858fad8a23f
parent370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0 (diff)
downloadcpython-390a0969c1206a37c86961ebf7ef3050681ed8dd.zip
cpython-390a0969c1206a37c86961ebf7ef3050681ed8dd.tar.gz
cpython-390a0969c1206a37c86961ebf7ef3050681ed8dd.tar.bz2
bpo-29749: Update int() docstring (GH-565)
The docstring did not properly represent the fact that the argument to int() was positional-only.
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index cfb4a3e..95661a4 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -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\