[Python-checkins] cpython: whatsnew: collections no longer implicitly imports 'abc' (#20784).

r.david.murray python-checkins at python.org
Thu Mar 13 17:01:12 CET 2014


http://hg.python.org/cpython/rev/d575398d1916
changeset:   89635:d575398d1916
user:        R David Murray <rdmurray at bitdance.com>
date:        Thu Mar 13 12:00:17 2014 -0400
summary:
  whatsnew: collections no longer implicitly imports 'abc' (#20784).

files:
  Doc/whatsnew/3.4.rst |  7 +++++++
  1 files changed, 7 insertions(+), 0 deletions(-)


diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -2436,6 +2436,13 @@
   have things that look like doctests in them you may see test failures you've
   never seen before when running your tests (:issue:`3158`).
 
+* The :mod:`collections.abc` module has been slightly refactored as
+  part of the Python startup improvements.  As a consequence of this, it is no
+  longer the case that importing :mod:`collections` automatically imports
+  :mod:`collections.abc`.  If your program depended on the (undocumented)
+  implicit import, you will need to add an explicit ``import collections.abc``
+  (:issue:`20784`).
+
 
 Changes in the C API
 --------------------

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list