Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db2d8a4

Browse files
committed
whatsnew: command.com support gone, int *base* can be __index__ but not float.
1 parent a6ec5cf commit db2d8a4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/whatsnew/3.4.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ Some smaller changes made to the core Python language are:
368368
buffer objects as arguments. (Contributed by Antoine Pitrou in
369369
:issue:`15958`.)
370370

371+
* The :class:`int` constructor now accepts any object that has an ``__index__``
372+
method for its *base* argument. (Contributed by Mark Dickinson in
373+
:issue:`16772`.)
374+
371375

372376
New Modules
373377
===========
@@ -1563,6 +1567,7 @@ and build tools:
15631567

15641568
* OS/2 (:issue:`16135`).
15651569
* Windows 2000 (changeset e52df05b496a).
1570+
* Windows systems where ``COMSPEC`` points to ``command.com`` (:issue:`14470`).
15661571
* VMS (:issue:`16136`).
15671572

15681573

@@ -1747,6 +1752,10 @@ Changes in the Python API
17471752
special method returned one. This now raises a :exc:`TypeError`.
17481753
(:issue:`16290`.)
17491754

1755+
* The :class:`int` constructor in 3.2 and 3.3 erroneously accept :class:`float`
1756+
values for the *base* parameter. It is unlikely anyone was doing this, but
1757+
if so, it will now raise a :exc:`TypeError` (:issue:`16772`).
1758+
17501759

17511760
Changes in the C API
17521761
--------------------

0 commit comments

Comments
 (0)