From: svelankar Date: Thu, 9 Mar 2017 00:29:01 +0000 (-0500) Subject: bpo-29749: Update int() docstring (GH-565) X-Git-Tag: v3.7.0a1~1169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=390a0969c1206a37c86961ebf7ef3050681ed8dd;p=python bpo-29749: Update int() docstring (GH-565) The docstring did not properly represent the fact that the argument to int() was positional-only. --- 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\