Brett Cannon added the comment:

ExtensionFileLoader.is_package() is accurate because it's not typical for an 
extension module to inject its own submodules like pyexpat is. Usually people 
who use an extension module in a package use it just for a submodule and not 
even as an __init__.

IOW there's a long history of built-ins and extensions not being in packages 
that people bump up against that no one has taken the time to try and 
straighten out due to it not being an issue on a regular basis.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29830>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to