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

Skip to content

Commit d73721a

Browse files
committed
whatsnew: collections no longer implicitly imports 'abc' (#20784).
1 parent b895505 commit d73721a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/whatsnew/3.4.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,13 @@ Changes in the Python API
24362436
have things that look like doctests in them you may see test failures you've
24372437
never seen before when running your tests (:issue:`3158`).
24382438

2439+
* The :mod:`collections.abc` module has been slightly refactored as
2440+
part of the Python startup improvements. As a consequence of this, it is no
2441+
longer the case that importing :mod:`collections` automatically imports
2442+
:mod:`collections.abc`. If your program depended on the (undocumented)
2443+
implicit import, you will need to add an explicit ``import collections.abc``
2444+
(:issue:`20784`).
2445+
24392446

24402447
Changes in the C API
24412448
--------------------

0 commit comments

Comments
 (0)