Re: [IronPython] infinite import loop for nested packages (and fix)

2006-03-02 Thread Martin Maly
: [IronPython] infinite import loop for nested packages (and fix) If you have a directory on your python path like so: foo/ __init__.py: import foo.bar as bar bar/ __init__.py: import foo.bar.baz as baz baz.py: print 'Baz imported' testit.py: import foo.bar And you run testit.py,

[IronPython] infinite import loop for nested packages (and fix)

2006-03-01 Thread Andrew Sutherland
If you have a directory on your python path like so: foo/ __init__.py: import foo.bar as bar bar/ __init__.py: import foo.bar.baz as baz baz.py: print 'Baz imported' testit.py: import foo.bar And you run testit.py, the import process will go into an infinite loop while importing 'foo.