All Questions
34 questions
2
votes
1
answer
394
views
How to pass a dynamic list from IronPython to C#
I want to get a python app to pass a generic list to my C# code. I've created a demo app that duplicates the problem I'm seeing.
I have this python code (Python 2.7), MainApp.py, that calls a C# DLL (....
0
votes
1
answer
1k
views
What it means - "IronPython is an implementation of the Python programming language"
I know question looks to be broad and subjective, but am stuck with this definition of IronPython everywhere - "IronPython is an implementation of the Python programming language" Please feel free to ...
3
votes
1
answer
495
views
GC.Collect does not call IronPython destructor
I have a simple IronPython class which implements a destructor (__del__) and write some thing to the console
in it. If there is not reference to the instance any more and i call GC.Collect for ...
5
votes
1
answer
2k
views
Entity Framework code first and ironpython
Is it possible to use the Entity Framework 6 with the code first pattern and write the models in C# and in IronPython?
The background is, that a few standard models are defined in the c# core, and ...
2
votes
0
answers
2k
views
IronPython Linq Lambda Issue
I am using Linq in a simple IronPython script to perform a lookup against an entity framework database context:
import clr
import System
clr.AddReference('Common')
clr.AddReference('System.Core')
...
0
votes
1
answer
890
views
Invoking IronPython function from C# after IronPython runtime was disposed
Suppose we have the following code in IronPython:
def hello():
print "Hello from Python"
We call function hello() in the following C# code:
private static void GetPythonFunction()
{
...
1
vote
2
answers
247
views
Intercepting method invocation to c# objects
I have an hybrid c# object, with some instance properties and methods, and I pass it to IronPython. What I want is to syncronize the dispatch to the c# members, both static and dynamics, from Py code.
...
-1
votes
2
answers
456
views
IronPython and Javascript execution via C# isn't consistent? [duplicate]
Possible Duplicate:
Is JavaScript’s Math broken?
I wrote some simple C# code that runs Python code dynamically (already implemented):
string code = @"100 * 2 + 4 / 3";
ScriptEngine engine = ...
3
votes
2
answers
423
views
Calling a function with named arguments in a hosted application
So I am hosting IronPython in my C# application. IronPhyton is used to implement a DSL for users. The DSL syntax should be something like this:
Ping(Message = "testOne1")
The hosting code looks like:...
2
votes
0
answers
857
views
C# application works much slower using compiled IronPython standard library
When I load modules from standard library as source .py files in this application, elapsed time after end equals approximately 4 seconds:
Stopwatch watch = Stopwatch.StartNew();
ScriptEngine engine = ...
3
votes
1
answer
1k
views
Why is calling CompiledCode.Execute from C# for an IronPython script not behaving as expected
I am trying to call an IronPython (2.7.1) script from C# (4.0)
This is related to IronPython integration in C#: a specific problem/question
I have a python script like below in a file script.py
...
0
votes
1
answer
630
views
How to get a DLR representation from C#?
Is there a generic method of converting a Dynamic Language Runtime (DLR) object into a string representation? For example, here is an example where obj is checked for a couple of specific types (...
4
votes
1
answer
2k
views
How to refer self-contained C# class library project with IronPython inside (Visual Studio 2010)
This question is kind of lengthy but I try to provide you with the details that I think is necessary to find the answer.
I have a C# WPF solution (.Net 4) consisting of a main project, building a WPF ...
9
votes
2
answers
2k
views
IronPython - Editor for end-user
We're currently investigating how we can embed IronPython (scripting) into our C# application.
We see the benefits it will provide to our end users, giving them the ability to hook into our ...
2
votes
1
answer
310
views
Distrubuting DLR runtime for C# Application with embedded (hosted) IronPython
We're building a commercial (closed/proprietary) intranet application which makes used of hosted IronPython (2.7), targeting .NET 4.0.
What approach would you recommend for ensuring the DLR ...