]> granicus.if.org Git - python/commitdiff
whatsnew: __complex__ may not return float, .so may have multiple python modules
authorR David Murray <rdmurray@bitdance.com>
Tue, 11 Feb 2014 13:13:10 +0000 (08:13 -0500)
committerR David Murray <rdmurray@bitdance.com>
Tue, 11 Feb 2014 13:13:10 +0000 (08:13 -0500)
Also a NEWS wording fixup.

Doc/whatsnew/3.4.rst
Misc/NEWS

index 0a0f31c4cbf121e0bed594b5d351bc12d33eb6f8..a31d0179c9514708a215da11edb3f29243628f63 100644 (file)
@@ -1443,6 +1443,10 @@ Other Improvements
   values for its constants from the C header files, instead of having the
   values hard-coded in the python module as was previously the case.
 
+* Loading multiple python modules from a single OS module (``.so``, ``.dll``)
+  now works correctly (previously it silently returned the first python
+  module in the file).  (Contributed by Václav Šmilauer in :issue:`16421`.)
+
 
 
 Significant Optimizations
@@ -1725,6 +1729,11 @@ Changes in the Python API
   :exc:`ValueError` if given a negative length; previously it returned nonsense
   values (:issue:`14794`).
 
+* The :class:`complex` constructor, unlike the :mod:`cmath` functions, was
+  incorrectly accepting :class:`float` values if an object's ``__complex__``
+  special method returned one.  This now raises a :exc:`TypeError`.
+  (:issue:`16290`.)
+
 
 Changes in the C API
 --------------------
index 825a7513f404637f72c5372091a5ee4f8ffd6500..d369582c7627cff3dbfdb27de30b2914cf838cbf 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2262,10 +2262,10 @@ Core and Builtins
   builtins.
 
 - Issue #16455: On FreeBSD and Solaris, if the locale is C, the
-  ASCII/surrogateescape codec is now used, instead of the locale encoding, to
+  ASCII/surrogateescape codec is now used (instead of the locale encoding) to
   decode the command line arguments. This change fixes inconsistencies with
-  os.fsencode() and os.fsdecode() because these operating systems announces an
-  ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
+  os.fsencode() and os.fsdecode(), because these operating systems announce an
+  ASCII locale encoding, but actually use the ISO-8859-1 encoding in practice.
 
 - Issue #16562: Optimize dict equality testing.  Patch by Serhiy Storchaka.