[IronPython] Double-Import Bug

John Doty jddoty at gmail.com
Wed May 18 02:29:57 CEST 2005

Is this bug known?

In file foo.py:

    import bar

At the IronPython console:

    >>> import foo
    [[ Giant exception stack trace ]]
    >>> import foo

That is, if a module fails to import, a second attempt to import does
not throw an exception. I think this is because
Importer.LoadFromSource puts the module into sys.modules before
calling the import function, but does not remove it if the import
function fails.


More information about the Ironpython-users mailing list