Skip to content

Commit 390a096

Browse files
soolabettubrettcannon
authored andcommitted
bpo-29749: Update int() docstring (pythonGH-565)
The docstring did not properly represent the fact that the argument to int() was positional-only.
1 parent 370fd20 commit 390a096

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5334,7 +5334,7 @@ static PyGetSetDef long_getset[] = {
53345334
};
53355335

53365336
PyDoc_STRVAR(long_doc,
5337-
"int(x=0) -> integer\n\
5337+
"int([x]) -> integer\n\
53385338
int(x, base=10) -> integer\n\
53395339
\n\
53405340
Convert a number or string to an integer, or return 0 if no arguments\n\

0 commit comments

Comments
 (0)