I wonder if the answer can lie in the IDE, sort of an intellisense on
steroids. Issue a call to form() and the IDE looks to see if the assemblies
that make form() possible are loaded. If not, a list of those (MRU) that
can fulfill this are presented in intellisense selector fashion, and the
impor
I see problems with #3, at least using those precise keywords.
A variant of #3, perhaps
reference
from System.Drawing import *
rather than muddying up "import" and "from" would be suitable for non-standard
libraries. "import foo from bar" and "from bar import foo" doesn't really sa
I like #3 very much!
(the 'from' clause being optional... (in case you import multiple namespace
from one assembly))
- Original Message -
From: "Jim Hugunin" <[EMAIL PROTECTED]>
3. Extend import, i.e. import System.Drawing from System.Drawing. Of
course, the most obvious ways to do t
We clearly need a better design than the current sys.LoadAssembly* methods.
For one thing, we shouldn't really be adding these to the existing sys module
but putting new methods like this in a new IronPython module. As you point
out, we should also do a better job of making this as invisible t
Out of curiosity, would it be possible to get IronPython to make a best-guess
attempt at automatically loading an appropriate assembly, if it discovers that
it doesn't know the namespace?
This could alleviate the problems people have with remembering
sys.LoadAssemblyByName.
__
Hi Freddie,
Below is the working code. I would be interested to hear what you had
most problems with. Common difficulty is the LoadAssemblyByName
function. Feel free to post feedback to this discussion alias. We are
interested to hear what roadblocks developers encounter as they try to
use IronPyt
Hi, I am trying to convert a very simple C# windows form test that I made
into IronPython (to see that it can be done). However I have tried over 20
different ways with no luck. Can anyone help me? There is very very little
documentation on IronPython, which I think needs to be addressed. The co
Title: RE: [IronPython] Problems when loading COM object implemented usingctypes
Hi,
To use COM server, you need to create a .NET assembly from the COM assembly type information for .NET to use. There is a tool that is part of .NET SDK - tlbimp.exe - which does that for you. It spits out a
Greetings,
I implemented a COM server using ctypes
module and deployed it using py2exe
as a DLL(MyCOMServer.dll).
Then I tried to load this COM server with
>>> import sys
>>> sys.LoadAssemblyFromFile("MyCOMServer.dll")
but got an IronPython.Objects.PythonRuntimeError message.
Did I miss somethi