]> granicus.if.org Git - python/commitdiff
bpo-29749: Update int() docstring (GH-565)
authorsvelankar <siddharth.velankar@gmail.com>
Thu, 9 Mar 2017 00:29:01 +0000 (19:29 -0500)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Thu, 9 Mar 2017 00:29:01 +0000 (16:29 -0800)
The docstring did not properly represent the fact that the argument to int() was positional-only.

Objects/longobject.c

index cfb4a3e7c0d3b3ce87aec194ab50c5893954fc4a..95661a4022018f4ed8eeb63e96efbd9a894bbeab 100644 (file)
@@ -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\