Sitelet https://github.com/python/cpython/commit/fa3fd4cb181120007aefc408366c0cef6fb62f9d
Skip to content

Commit fa3fd4c

Browse files
bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)
(cherry picked from commit 3fe89da) Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
1 parent 55b8c4b commit fa3fd4c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎Doc/library/functions.rst‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ are always available. They are listed here in alphabetical order.
112112

113113
.. index:: pair: Boolean; type
114114

115+
.. versionchanged:: 3.7
116+
*x* is now a positional-only parameter.
115117

116118
.. function:: breakpoint(*args, **kws)
117119

@@ -577,6 +579,9 @@ are always available. They are listed here in alphabetical order.
577579
.. versionchanged:: 3.6
578580
Grouping digits with underscores as in code literals is allowed.
579581

582+
.. versionchanged:: 3.7
583+
*x* is now a positional-only parameter.
584+
580585

581586
.. index::
582587
single: __format__
@@ -728,7 +733,7 @@ are always available. They are listed here in alphabetical order.
728733
to provide elaborate line editing and history features.
729734

730735

731-
.. class:: int(x=0)
736+
.. class:: int([x])
732737
int(x, base=10)
733738

734739
Return an integer object constructed from a number or string *x*, or return
@@ -762,6 +767,9 @@ are always available. They are listed here in alphabetical order.
762767
.. versionchanged:: 3.6
763768
Grouping digits with underscores as in code literals is allowed.
764769

770+
.. versionchanged:: 3.7
771+
*x* is now a positional-only parameter.
772+
765773

766774
.. function:: isinstance(object, classinfo)
767775

0 commit comments

Comments
 (0)