Thank you very much, great repro, which points
to an IronPython bug which I opened on CodePlex (bug 940) http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=940 in fact, the actual repro is even
simpler, no need to declare the TestClass either, simply import minidom and
exception happens. >>> import sys >>>
sys.path.append(r"C:\Python24\Lib") >>> import xml.dom.minidom Traceback (most recent call last): File , line 0, in
<stdin>##8 File , line 0, in __import__##5 File
C:\Python24\Lib\xml\dom\minidom.py, line 462, in Initialize TypeError: Unable to cast object of type
'IronPython.Runtime.Types.OldClass' to type
'IronPython.Runtime.Types.DynamicType'. Martin From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Raath OK - I've broken it down
to its simplest form. It looks like there's a problem importing the minidom
class. On 7/13/06, However, that said, in Beta 9, the OldClass is no longer a
DynamicType, which explains the exception itself. To find out what you need to
change in your code is something that we'll need more info for. For example, the exception can come from anywhere in the
Module body (during import, the module body gets executed – unless the
module has been already imported). Since I don't get exception when executing
"from Module import Class", I suspect that this is what may be the
case. The call stack for the exception could help find out what line in your
module code is throwing. M. From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED]]
On Behalf Of To help you, we will need more information about your use of
the Python Engine. The simple case of executing "from Module import
Class" does work so we need to know more to find out what the problem may
be. Thanks Martin From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED]]
On Behalf Of Mike Raath Hi
|
_______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com