[IronPython] Import Bug with 1.0 Beta 9

Haibo Luo haiboluo at exchange.microsoft.com
Tue Jul 25 20:16:12 CEST 2006


Thanks for reporting this. I opened a bug at http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1348.

Unfortunately we will unable to fix it in the next release, which will be out soon.


-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jesse Granden
Sent: Sunday, July 23, 2006 3:06 PM
To: users at lists.ironpython.com
Subject: [IronPython] Import Bug with 1.0 Beta 9

Hi,

I ran across this while trying to get sqlalchemy working with IronPython.
If a package's __init__.py defines a method with the same name as a module in that package, you can't import the module.

example:
test.py::
import foo.bar as b
print b


foo/__init__.py::
def bar():
    pass

foo/bar.py::
pass


-----------------------------
C:\IronPython-1.0-Beta9>python test.py
<module ' foo.bar' from 'C:\IronPython-1.0-Beta9\foo\bar.py'>

C:\IronPython-1.0-Beta9>ipy test.py
<function bar at 0x000000000000002B>

-------------------------------







More information about the Ironpython-users mailing list