Re: [Python.NET] Error in calling Python class method from C#

2018-04-27 Thread techi eth
Any input on raised query. I think i am missing something very simple but not able to catch. Thanks On Thu, Apr 26, 2018 at 5:47 PM, techi eth wrote: > Yes,It will work with this way but i need to create multiple instance of > same class.If you see other function (@Execute() ) with static was >

[Python.NET] AddReferenceToFileAndName, AddReferenceToFile

2018-04-27 Thread Joe
Hello, I found lots of references to AddReferenceToFileAndName and AddReferenceToFile online but could not find anything on them in the docs. Have they been removed? I looked at pythonnet/src/runtime/moduleobject.cs and there is only a single function public static Assembly AddReference(st

Re: [Python.NET] AddReferenceToFileAndName, AddReferenceToFile

2018-04-27 Thread Joe
I found the answer :) These are IronPython methods, sorry I mixed that up. Hello, I found lots of references to AddReferenceToFileAndName and AddReferenceToFile online but could not find anything on them in the docs. Have they been removed? I looked at pythonnet/src/runtime/moduleobject.cs a

[Python.NET] Using multiple versions of the same DLL

2018-04-27 Thread Joe
Hello, I found a rather old thread (2003) that describes how multiple versions of a DLL can be used. It states Things get a lot more complicated if you need to load more than one version of a particular assembly (or more likely, you have a dependency on some library the does so). In this cas

[Python.NET] Getting handles to .NET objects, un-referencing modules

2018-04-27 Thread Joe
Hello, I have a .cs file that contains public struct SomeStruct { } public static class SomeClass { } So far I use it with PythonNET like import clr clr.AddReference('c:\\Test\Module.dll') from Module import SomeClass, SomeStruct SomeClass.SomeMethod(...) My problem is n

[Python.NET] Embedding: finer control over module creation

2018-04-27 Thread Tom Unger
I'm starting on a project to embed CPython into a .NET application for scripting. The application currently uses IronPython, which is falling behind. Our scripting needs are fairly extensive and I'm challenged by the limited information I find available. First questions are about some finer g

[Python.NET] Embedding: finer control over module creation

2018-04-27 Thread Tom Unger (eVigils)
I'm starting on a project to embed CPython into a .NET application for scripting. The application currently uses IronPython, which is falling behind. Our scripting needs are fairly extensive and I'm challenged by the limited information I find available. First questions are about some finer g