]> granicus.if.org Git - python/commitdiff
whatsnew: command.com support gone, int *base* can be __index__ but not float.
authorR David Murray <rdmurray@bitdance.com>
Wed, 12 Feb 2014 04:34:14 +0000 (23:34 -0500)
committerR David Murray <rdmurray@bitdance.com>
Wed, 12 Feb 2014 04:34:14 +0000 (23:34 -0500)
Doc/whatsnew/3.4.rst

index 8ce4c54a1198d0af5d6934675bf8fa27ac3f8913..06adecd6c265a878ce45deacc7e660c54d2b8697 100644 (file)
@@ -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
 --------------------