Is the following the only way to create a generic containing a python class?


from System.Collections.Generic import List
from System import Type

class Foo:
    >>class stuff<<

l = List[Type.GetType(Foo())]()


I assume this is the nature of dynamic typing, but is there a way to get the
type from the classobj, and not an instance?
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to