[IronPython] clr.CompileSubclassTypes restrictions on list of types
dinov at microsoft.com
Tue Nov 10 18:44:35 CET 2009
The only restrictions are the normal restrictions that Python has regarding
inheritance. In this case it looks like you're hitting that you cannot
inherit from more than one base type w/ a different layout.
Basically it looks like you're trying to pre-compile the equivalent of:
class c(float, set): pass
Which isn't legal in Python so my guess is there is an issue w/ the way you
split them up.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Tom Wright
> Sent: Tuesday, November 10, 2009 9:39 AM
> To: Discussion of IronPython
> Subject: [IronPython] clr.CompileSubclassTypes restrictions on list of types
> Are there any restrictions placed on the list of types that can be
> passed to CompileSubclassTypes?
> We are having issues with a clr.AddReference(DllContainingSubclasses)
> being very slow, so are trying to split the compiled subclasses across
> multiple dlls to indicate progress between the loading of these dlls.
> However, when trying to compile a partial list of types we get the
> following error:
> Traceback (most recent call last):
> File "c:\buildshare\gitrepo\precompile_subclasses.py", line 40, in
> TypeError: : can only extend one CLI or builtin type, not both
> ng.Runtime.Extensible`1[[System.Double, mscorlib, Version=22.214.171.124,
> al, PublicKeyToken=b77a5c561934e089]] (for
> and IronPython.Runtime.SetCollection (for
> Any help is much appreciated,
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users