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
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
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',