[Python-checkins] bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)

Miss Islington (bot) webhook-mailer at python.org
Mon Aug 27 06:59:00 EDT 2018


https://github.com/python/cpython/commit/fa3fd4cb181120007aefc408366c0cef6fb62f9d
commit: fa3fd4cb181120007aefc408366c0cef6fb62f9d
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-08-27T06:58:56-04:00
summary:

bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)

(cherry picked from commit 3fe89dac42809a7741d50ebf595be98833b79b97)

Co-authored-by: Louis Sautier <sautier.louis at gmail.com>

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 949a54d6d2d5..bb472862e493 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -112,6 +112,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)
 
@@ -577,6 +579,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__
@@ -728,7 +733,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
@@ -762,6 +767,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)
 



More information about the Python-checkins mailing list