[IronPython] Bug: module ImportError exception not being raised

Dino Viehland dinov at exchange.microsoft.com
Fri Apr 7 00:03:45 CEST 2006

Thanks for the bug report, we've got this one filed and should get it fixed for beta 6.

Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Anthony Tarlano
Sent: Thursday, April 06, 2006 1:59 PM
To: Discussion of IronPython
Subject: [IronPython] Bug: module ImportError exception not being raised


I found that IronPython Beta 5 is not raising ImportError and just
going into a livelock loop when there is a circular import between two

Here is the test case where you'll see CPython returning an
ImportError exception and IronPython spining

DELL# ls
a.py  b.py
DELL# cat a.py
from b import BClass

class AClass:
DELL# cat b.py
from a import AClass

class BClass:
DELL# python a.py
Traceback (most recent call last):
  File "a.py", line 1, in ?
    from b import BClass
  File "c:\usr\home\tony\ipbug\b.py", line 1, in ?
    from a import AClass
  File "c:\usr\home\tony\ipbug\a.py", line 1, in ?
    from b import BClass
ImportError: cannot import name BClass
DELL# IronPythonConsole a.py          <----------- This command
livelocks and never returns


users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list