[issue21784] __init__.py can be a directory

Raymond Hettinger report at bugs.python.org
Tue Jun 17 06:54:33 CEST 2014


Raymond Hettinger added the comment:

> Is this expected? 

It is a little weird but usually problematic.  The cause that import checks for the existence of '__init__.py' but doesn't then add isfile() or  isdir() check which would be unnecessary 99.9% of the time.

I classify this a harmless oddity.

----------
nosy: +rhettinger
priority: normal -> low

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


More information about the Python-bugs-list mailing list