Re: [Python.NET] Installing Python for .NET with .NET 2.0?

2007-04-20 Thread Alberto Berti
Hi Aaron, the tarballs on pythondotnet's site are for .NET 1, if you want to use it with .NET 2 you should checkout the last svn trunk and patch it with the instruxtions described in this mail http://thread.gmane.org/gmane.comp.python.dotnet/576 .In that message there is also a link to binary pac

Re: [Python.NET] Installing Python for .NET with .NET 2.0?

2007-04-20 Thread Alberto Berti
> "Aaron" == Aaron Rubin <[EMAIL PROTECTED]> writes: Hi Aaron, Aaron> from System import Array # works! Aaron> myarray = Array[int](10) # fails! TypeError: Cannot the correct semantic is myarray = Array[int]((0,1,2,3,4,5,6,7,8,9)) Aaron> I'm a little confused...obviously t

Re: [Python.NET] Installing Python for .NET with .NET 2.0?

2007-04-20 Thread Alberto Berti
> "Brian" == Brian Lloyd <[EMAIL PROTECTED]> writes: Brian> Hi Aaron - PythonNet tip 'o the day: you can probably just Brian> construct the array in Python as a normal list: Brian> mylist = [[1, 2], [3, 4], ...] Brian> If you pass that to a method with a signature that take

Re: [Python.NET] Installing Python for .NET with .NET 2.0?

2007-04-20 Thread Alberto Berti
>>>>> "Alberto" == Alberto Berti <[EMAIL PROTECTED]> writes: Alberto> i should better understand what generic types are i answer by myself.. generic classes are much more "pythonic" :) _ Pytho

[Python.NET] Packages are wrongly initialized?

2007-07-31 Thread Alberto Berti
Hi all, i'm in the process of embedding python in a C# application. After initializing the engine, my application imports via (ImportModule) a custom package which contains the python side of my code. doing the following code raises an AttributeError Exception: PyObject pypackage = PythonEngin

Re: [Python.NET] Packages are wrongly initialized?

2007-07-31 Thread Alberto Berti
> "Brian" == Brian Lloyd <[EMAIL PROTECTED]> writes: Brian> Note that imports are subtley different than getattr Brian> behavior... does your main main 'pypackage' package Brian> contain something like the following in its __init__? Brian> from subpackage import * It's reall