This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka, stutzbach
Date 2017-04-23.12:30:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492950613.95.0.166673742213.issue30144@psf.upfronthosting.co.za>
In-reply-to
Content
Now abstract collection classes are defined in collections.abc rather than collections. collections contains just aliases for compatibility. Importing collections ABC from collections.abc is more idiomatic. And when aliases will be removed from collection this will be the only way.

But some code still imports them from collections. Proposed patch makes it importing them from collections.abc.

The most basic modules like locale, weakref and pathlib could import them just from _collections_abc for decreasing the startup time, but this is different issue.

The patch doesn't touch the collections module itself and its tests, and the _decimal module which imports collections.MutableMapping in C code (changing this would require more rewriting).
History
Date User Action Args
2017-04-23 12:30:14serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, stutzbach
2017-04-23 12:30:13serhiy.storchakasetmessageid: <1492950613.95.0.166673742213.issue30144@psf.upfronthosting.co.za>
2017-04-23 12:30:13serhiy.storchakalinkissue30144 messages
2017-04-23 12:30:13serhiy.storchakacreate