summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2018-08-27 10:45:26 (GMT)
committerXiang Zhang <angwerzx@126.com>2018-08-27 10:45:26 (GMT)
commit3fe89dac42809a7741d50ebf595be98833b79b97 (patch)
tree9aaa65a7db5222522e567c85890970a38284b10d /Doc/library/functions.rst
parent7d81e8f5995df6980a1a02923e224a481375f130 (diff)
downloadcpython-3fe89dac42809a7741d50ebf595be98833b79b97.zip
cpython-3fe89dac42809a7741d50ebf595be98833b79b97.tar.gz
cpython-3fe89dac42809a7741d50ebf595be98833b79b97.tar.bz2
bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index eb41e72..48cd9b0 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -113,6 +113,8 @@ are always available. They are listed here in alphabetical order.
.. index:: pair: Boolean; type
+ .. versionchanged:: 3.7
+ *x* is now a positional-only parameter.
.. function:: breakpoint(*args, **kws)
@@ -578,6 +580,9 @@ are always available. They are listed here in alphabetical order.
.. versionchanged:: 3.6
Grouping digits with underscores as in code literals is allowed.
+ .. versionchanged:: 3.7
+ *x* is now a positional-only parameter.
+
.. index::
single: __format__
@@ -729,7 +734,7 @@ are always available. They are listed here in alphabetical order.
to provide elaborate line editing and history features.
-.. class:: int(x=0)
+.. class:: int([x])
int(x, base=10)
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.
.. versionchanged:: 3.6
Grouping digits with underscores as in code literals is allowed.
+ .. versionchanged:: 3.7
+ *x* is now a positional-only parameter.
+
.. function:: isinstance(object, classinfo)