Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types

2009-11-11 Thread Tom Wright
...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Tom Wright Sent: Tuesday, November 10, 2009 10:08 AM To: Discussion of IronPython Subject: Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types Thanks the reply, Could you clarify slightly what you mean

Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types

2009-11-10 Thread Dino Viehland
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,

Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types

2009-11-10 Thread Tom Wright
Thanks the reply, Could you clarify slightly what you mean by the Python's normal restrictions. I was guessing the restriction might be something like: When compiling a list of types, if the list contains a class B which inherits from A then A must be contained in the list. The interesting

Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types

2009-11-10 Thread Dino Viehland
] clr.CompileSubclassTypes restrictions on list of types Thanks the reply, Could you clarify slightly what you mean by the Python's normal restrictions. I was guessing the restriction might be something like: When compiling a list of types, if the list contains a class B which inherits from