10000 bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834) · python/cpython@3fe89da · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fe89da

Browse files
sbrazzhangyangyu
authored andcommitted
bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)
1 parent 7d81e8f commit 3fe89da

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Doc/library/functions.rst

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

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

116+
.. versionchanged:: 3.7
117+
*x* is now a positional-only parameter.
116118

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

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

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

582587
.. index::
583588
single: __format__
@@ -729,7 +734,7 @@ are always available. They are listed here in alphabetical order.
729734
to provide elaborate line editing and history features.
730735

731736

732-
.. class:: int(x=0)
737+
.. class:: int([x])
733738
int(x, base=10)
734739

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

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

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

0 commit comments

Comments
 (0)
0