Re: [Python.NET] Getting started with Python for .NET

2012-11-07 Thread Liam Corrigan
You do not need to add the extension in the AddReference call. Just clr.AddReference("DotNet4Class") >From DotNet4Class import * -- Message: 1 Date: Tue, 6 Nov 2012 19:08:59 + (UTC) From: Anneka Boccio To: pythondotnet@pytho

[Python.NET] .NET 4.0 Extension methods

2012-10-10 Thread Liam Corrigan
Hi, I'm using my own python .NET 4.0 build and I'm trying to access some extension methods for a concurrent queue. However, the console only shows methods and not extension methods. In visual studio 2010 C# .NET 4.0, I can see all the extension methods in the Intellisense/Autocomplete options.

Re: [Python.NET] import clr_2, import clr_4 vs import clr

2012-03-23 Thread Liam Corrigan
, I use IronPython but I generally just write what I need in C# and then call it in pythonnet Thanks for the help! From: Liam Corrigan Sent: March-22-12 5:09 PM To: [email protected] Subject: RE: import clr_2, import clr_4 vs import clr I make a reference to System, I need to do it th

Re: [Python.NET] import clr_2, import clr_4 vs import clr

2012-03-22 Thread Liam Corrigan
So I figured if I had a 'import clr_2', Then the call to 'clr_2.AddReference("System") would call the 2.0 version of System. From: Tribble, Brett [mailto:[email protected]] Sent: March-22-12 4:59 PM To: Liam Corrigan; [email protected] Subject: RE: import c

Re: [Python.NET] import clr_2, import clr_4 vs import clr

2012-03-22 Thread Liam Corrigan
Friedman [mailto:[email protected]] Sent: March-22-12 5:00 PM To: Liam Corrigan Cc: Subject: Re: [Python.NET] import clr_2, import clr_4 vs import clr Silly question: isn't a .net 2.0 assembly backwards compatible with a .net 4.0 runtime? Why do you actually need to run a physically sep

[Python.NET] import clr_2, import clr_4 vs import clr

2012-03-22 Thread Liam Corrigan
port clr_2 import clr_4 clr_2.AddReference("MyDOTNET_2.0_BasedLib") clr_4.AddReference("MyDOTNET_4.0_BasedLib") Are there any settings in the source build that I can do, to kick out two separate clr.pyd and Python.Runtime.dll's with new names and matching