Author wolma
Recipients Anthony Sottile, brett.cannon, eric.snow, ncoghlan, wolma
Date 2017-03-10.09:54:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489139641.59.0.995460492195.issue29258@psf.upfronthosting.co.za>
In-reply-to
Content
While it is rather trivial to implement the proposed functionality - all that's required here is to eliminate the check for __init__.py from pkgutil._iter_file_finder_modules - this would have undesired impacts on, e.g., pydoc.apropos:
This function would then recursively report *any* directory/subdirectory on sys.path, which is quite surely not what people want.

I think this is a fundamental problem with namespace packages: they are nice and flexible for specific imports, but they make it impossible to know whether a directory found on the filesystem is *intended* as a Python package or not.
History
Date User Action Args
2017-03-10 09:54:01wolmasetrecipients: + wolma, brett.cannon, ncoghlan, eric.snow, Anthony Sottile
2017-03-10 09:54:01wolmasetmessageid: <1489139641.59.0.995460492195.issue29258@psf.upfronthosting.co.za>
2017-03-10 09:54:01wolmalinkissue29258 messages
2017-03-10 09:54:00wolmacreate