I'd like to do the equivalent of something like...
import RemoteAdmin
ls = RemoteAdmin.ConnectToService(localhost,LogViewer)
numEntries = ls.GetNumberOfEntries()
e = ls.GetEntry(numEntries - 1)
entryString = str(e)
in C#.
So I get as far as
PythonEngine e = new PythonEngine();
# The
: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of Jason Ferrara
Sent: Friday, August 11, 2006 12:08 PM
To: Discussion of IronPython
Subject: [IronPython] Need help using IronPython from C#
I'd like to do the equivalent of something like...
import RemoteAdmin
ls
On Aug 11, 2006, at 5:32 PM, Dino Viehland wrote:
You're quickly getting into the guts of the runtime, so you'll find
most of what you want over in Ops.
To get an attribute off of an object you can do TryGetAttr(object
o, SymbolId name, out object ret). o would be your ls, SymbolId's
- Jason
On Aug 30, 2006, at 2:33 PM, Jason Ferrara wrote:
I want to write a custon ConfigurationSection in IronPython. So I
try...
class MySettings(System.Configuration.ConfigurationSection):
# custom configuration stuff here
c
#
that calls into your Python using the engine APIs but that might be
more work than it's worth.
-Original Message-
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of Jason Ferrara
Sent: Thursday, August 31, 2006 12:56 PM
To: Discussion of IronPython
Subject: Re
On Aug 31, 2006, at 4:00 PM, Dino Viehland wrote:
The Item property is the default indexer, so you should be able to
access it using foo[index].
As for your other question - Martin looked into this but I didn't
see a response from him... The problem seems to be that we don't
define
Not that I saw.
On Sep 18, 2006, at 11:14 AM, J. Merrill wrote:
Was an answer to this ever given?
At 12:34 PM 9/1/2006, Jason Ferrara wrote
If I wanted to write a stub in C#, how do I get access to a
PythonEngine that represents the python environment that called the
C# code? Just calling
In my case I'm looking to write assemblies in C# that makes use of
modules defined in IronPython that others can use without having to
know or care that they use IronPython (except for having to have the
IronPython dlls around). Things are complicated by the fact that some
of the modules