[docs] [issue21784] __init__.py can be a directory
abraithwaite
report at bugs.python.org
Tue Jun 17 16:25:06 CEST 2014
abraithwaite added the comment:
Interesting. I saw the same behavior on 2.7.7 as well:
$ python2
Python 2.7.7 (default, Jun 3 2014, 01:46:20)
[GCC 4.9.0 20140521 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pkg import foobar
>>> foobar
<module 'pkg.foobar' from 'pkg/foobar.py'>
>>>
Anyways, it doesn't bother me too much. I opened a ticket because I couldn't find an already open bug about it or any reference to it on google (although the keywords aren't great for google searches).
Cheers!
----------
resolution: not a bug ->
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21784>
_______________________________________
More information about the docs
mailing list