Message21238
There is some strange feature, looking like a bug.
I have 'pkg' dir with 2 files:
./pkg/__init__.py
print '__init__.py'
./pkg/test.py
print 'test.py'
import __init__
Python 2.3.4 (#53, May 25 2004, 21:17:02)
>>> import pkg.test
__init__.py
test.py
__init__.py
With '-v' option:
>>> import pkg.test
import pkg # directory pkg
# pkg\__init__.pyc matches pkg\__init__.py
import pkg # precompiled from pkg\__init__.pyc
__init__.py
# pkg\test.pyc matches pkg\test.py
import pkg.test # precompiled from pkg\test.pyc
test.py
# pkg\__init__.pyc matches pkg\__init__.py
import pkg.__init__ # precompiled from pkg\__init__.pyc
__init__.py
Why __init__.py executed two times? |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:22:46 | admin | link | issue977250 messages |
| 2007-08-23 14:22:46 | admin | create | |
|