All Questions
Tagged with ironpython dynamic-language-runtime
78 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 ...
1
vote
1
answer
171
views
Without a roadmap, can DLR be used with IronPython, assuming it will continue to be packaged in future .NET Versions
DLR or Dynamic Language Runtime hasn't seen any activity after mid 2010, still around its v1.0 release since then.
I need DLR and IronPython to run my Python code using Numpy and at the same time ...
0
votes
0
answers
287
views
Passing data to and fro during run time between C# Winform and Python Script, using Ironpython
When I click the button On winform, this get executed:
using (var outStream = new ScriptOutputStream(win.txtOutput))
{
ExecuteScript(outStream);
}
This is the function to run the script.
...
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 ...
1
vote
1
answer
516
views
IronPython use namespace without import
Is it possible in IronPython to use a kind of inline namespace? For example:
System.Console.WriteLine("Test")
If i execute the code from above, get the following error: name 'System' is not defined. ...
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.
...
2
votes
2
answers
728
views
IronPython and DynamicObject that overrides TryUnaryOperation
IronPython (2.7.3) seems to not check the TryUnaryOperation with ExpressionType.IsFalse and ExpressionType.IsTrue for performing short-circuit evaluation of the logical AND and OR operations.
Here's ...
-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 = ...
2
votes
1
answer
204
views
DapperDotNet w/IronPython: How To Handle Returned Result Set?
Tried to throw a quick example together this morning but I ran into a road block. Everything works fine up to the point when I want to do something with the result set returned. Dapper is returning ...
3
votes
1
answer
603
views
How to get IDynamicMetaObjectProvider for a static (compile time) type?
I want to execute dynamic expressions (provided by the user) in the context/scope of a compile time type.
In the example below, context is an instance of an arbitrary compile time type. To create the ...
1
vote
1
answer
922
views
Analyzing an IronPython Scope
I'm trying to write C# code with an embedded IronPython script. Then want to analyze the contents of the script, i.e. list all variables, functions, class and their members/methods.
There's an easy ...