diff options
author | svelankar <siddharth.velankar@gmail.com> | 2017-03-09 00:29:01 (GMT) |
---|---|---|
committer | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-03-09 00:29:01 (GMT) |
commit | 390a0969c1206a37c86961ebf7ef3050681ed8dd (patch) | |
tree | 873a67245fc558de628e6a5cdf5a7858fad8a23f | |
parent | 370fd202f1a3d06329ca2dbfdcb22ca1c9de64c0 (diff) | |
download | cpython-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.c | 2 |
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\ |