Commit db2d8a4c authored by R David Murray's avatar R David Murray

whatsnew: command.com support gone, int *base* can be __index__ but not float.

parent a6ec5cf8
......@@ -368,6 +368,10 @@ Some smaller changes made to the core Python language are:
buffer objects as arguments. (Contributed by Antoine Pitrou in
:issue:`15958`.)
* The :class:`int` constructor now accepts any object that has an ``__index__``
method for its *base* argument. (Contributed by Mark Dickinson in
:issue:`16772`.)
New Modules
===========
......@@ -1563,6 +1567,7 @@ and build tools:
* OS/2 (:issue:`16135`).
* Windows 2000 (changeset e52df05b496a).
* Windows systems where ``COMSPEC`` points to ``command.com`` (:issue:`14470`).
* VMS (:issue:`16136`).
......@@ -1747,6 +1752,10 @@ Changes in the Python API
special method returned one. This now raises a :exc:`TypeError`.
(:issue:`16290`.)
* The :class:`int` constructor in 3.2 and 3.3 erroneously accept :class:`float`
values for the *base* parameter. It is unlikely anyone was doing this, but
if so, it will now raise a :exc:`TypeError` (:issue:`16772`).
Changes in the C API
--------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment