diff options
author | svelankar <siddharth.velankar@gmail.com> | 2017-03-08 19:29:01 -0500 |
---|---|---|
committer | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-03-08 16:29:01 -0800 |
commit | 390a0969c1206a37c86961ebf7ef3050681ed8dd (patch) | |
tree | 873a67245fc558de628e6a5cdf5a7858fad8a23f /Objects/longobject.c | |
parent | 370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0 (diff) | |
download | cpython-git-390a0969c1206a37c86961ebf7ef3050681ed8dd.tar.gz |
bpo-29749: Update int() docstring (GH-565)
The docstring did not properly represent the fact that the argument to int() was positional-only.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index cfb4a3e7c0..95661a4022 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\ |