Re: Mysterious non-module A.sys

2006-01-10 Thread Robin Becker
Fredrik Lundh wrote: .. >> >>where does A.sys come from? > > > http://www.python.org/doc/essays/packages.html > > "Dummy Entries in sys.modules ... > > ... thanks -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Mysterious non-module A.sys

2006-01-10 Thread Robin Becker
I have a package A containing a null __init__.py and a simple module B.py C:\code>cat A\B.py import sys print __file__ print sys.modules.keys() C:\code>python -c"import A.B" A\B.py ['copy_reg', 'A.B', 'locale', '__main__', 'site', '__builtin__', 'encodings', 'os.path', 'A.sys', 'encodings.codecs

Re: Mysterious non-module A.sys

2006-01-10 Thread Fredrik Lundh
Robin Becker wrote: >I have a package A containing a null __init__.py and a simple module B.py > > C:\code>cat A\B.py > import sys > print __file__ > print sys.modules.keys() > > C:\code>python -c"import A.B" > A\B.py > ['copy_reg', 'A.B', 'locale', '__main__', 'site', '__builtin__', 'encodings',