This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abraithwaite
Recipients abraithwaite, docs@python
Date 2014-06-17.02:48:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402973312.89.0.00365270476425.issue21784@psf.upfronthosting.co.za>
In-reply-to
Content
Is this expected?  It was very confusing when I cloned a repo that didn't have the __init__.py there when I had just made it, but of course git doesn't track files, only directories.  I had accidentaly done mkdir instead of touch.

$ mkdir pkg/__init__.py
$ touch pkg/foobar.py
$ python
Python 3.4.1 (default, May 19 2014, 17:23:49) 
[GCC 4.9.0 20140507 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pkg import foobar
>>> foobar
<module 'pkg.foobar' from '/home/abraithwaite/pkg/foobar.py'>
>>>
History
Date User Action Args
2014-06-17 02:48:32abraithwaitesetrecipients: + abraithwaite, docs@python
2014-06-17 02:48:32abraithwaitesetmessageid: <1402973312.89.0.00365270476425.issue21784@psf.upfronthosting.co.za>
2014-06-17 02:48:32abraithwaitelinkissue21784 messages
2014-06-17 02:48:31abraithwaitecreate