[issue20784] 'collections.abc' is no longer defined when collections is imported

Larry Hastings report at bugs.python.org
Wed Feb 26 21:49:05 CET 2014


Larry Hastings added the comment:

> So, it's a very common idiom.

"Common" doesn't imply "correct" or "supported".  There are plenty of other packages/modules who don't import their subpackages/submodules during initialization.  Unless explicitly supported by the module, using a submodule without explicitly importing it is relying on undefined behavior.

I stand by my statement.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20784>
_______________________________________


More information about the Python-bugs-list mailing list