From 390a0969c1206a37c86961ebf7ef3050681ed8dd Mon Sep 17 00:00:00 2001 From: svelankar Date: Wed, 8 Mar 2017 19:29:01 -0500 Subject: [PATCH] bpo-29749: Update int() docstring (GH-565) The docstring did not properly represent the fact that the argument to int() was positional-only. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index cfb4a3e7c0d..95661a40220 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\