RE: [Python.NET] .NET character and byte

2005-02-08 Thread Brian Lloyd
Hi Edward -   A Python string object or unicode object should convert to char[] automatically. Right now, the Byte converter expects to convert an int rather than a string, so a workaround might be to convert your list of strings to a list of ints to pass to the constructor:   stuff =

Re: [Python.NET] managed exception stack trace.

2005-02-08 Thread Stan Pinte
Brian Lloyd a écrit : I am using pythonNet with a great pleasure, thanks a lot for that piece of work. IMHO, a wiki would be very very useful for this project, as I would be ready to contribute... One question: How do I print out managed exceptions full stack trace? Hi Stan - A trick you

[Python.NET] ToString method

2005-02-08 Thread JONES, Michael, FM Quantitative Research
Title: Message Hello again,   Is there a reason why the ToString method doesn't automatically map to the __str__ python method?   Thanks, Michael *** The Royal Bank of Scotland plc. Registered in Scotland No 9031

[Python.NET] Loss of import hook?

2005-02-08 Thread JONES, Michael, FM Quantitative Research
Title: Message Hello,   I've just unzipped Python.Net, and copied the two DLLs to my c:\Python24 ActivePython install directory, but if I first import CLR on it's own, then python seems to lose its import hook?   ActivePython 2.4 Build 243 (ActiveState Corp.) based onPython 2.4 (#60, Nov 30