[Python.NET] tuple not recognized as a type ?

2009-05-01 Thread Grégoire Dooms
Hello, I have been trying to use tuple as a generic type argument: In [4]: from System.Collections.Generic import List In [5]: In [6]: x = List[int](range(4)) In [7]: x = List[tuple]([() for t in range(4)]) --- TypeError

Re: [Python.NET] tuple not recognized as a type ?

2009-05-01 Thread Tribble, Brett
If you have your .net assembly put up a modal dialog (messagebox), you can attach to the process from DevStudio, set breakpoints, etc. From: pythondotnet-bounces+btribble=maxis@python.org [mailto:pythondotnet-bounces+btribble=maxis@python.org] On Behalf Of Grégoire Dooms Sent: Friday,

Re: [Python.NET] tuple not recognized as a type ?

2009-05-01 Thread Brian Lloyd
Hi Brett ­ Generics only work with CLR types and primitive Python types that have a direct CLR equivalent (string, int, etc.), so you really can¹t do this with tuples. Not sure what you were going for in the example, but generally you will want to use CLR collection types when interacting with C