I'm working on a large ASP.NET software product. We'd like to allow users to enter expressions rather than constants for certain fields. Typically something like:
(Price * 1.175) + 25
The obvious solution seems to be to embed IronPython, create a Scope, pass in the "Price" (and other) variables and then execute the above as IronPython...
When I used Visual Studio 2008 I could install IronPython + IronPython Integrated IDE + Visual Studio Shell Integrated Mode and then my Visual Studio would parse .py files and highlight its syntax.
I tried the same with Visual Studio 2010 beta 2 with no success. Where is the catch? Should I wait a bit longer for new releases or there is...
Has IronPython gotten to a point where you can just drop it in as a replacement for CPython?
To clarify: I mean can IronPython run applications originally written for CPython (no .NET involved, of course)
...
Has anyone successfully executed the source control system Bazaar in IronPython?
...
Hello folks:
I am learning IronPython along wiht Python. I'm curious what kinds of tasks you tend to use IronPython to tackle more often than standard .NET languages.
Thanks for any example.
...
In ASP.NET with the normal ASP model you could have the codefile of the aspx file in a dll by inheriting the class inside the dll. In IronPython you have another model and the only option in the aspx page is "codefile" and there is no "inherits". My question is, is there any way to associate an aspx file to a source file which is not dir...
Hi folks:
After installing prerequistes (Visual Studio 2008 Shell Isolated/Integrated Mode Redistributable package) here, I still get errors: cannot find one or more components when installing IronPython Studio.
What others do I require? Thx.
...
Hi folks:
As title described, what things I need to install to enable VS2008 to create IronPython project?
Thanks.
...
I'm trying to build an extensible program where users, among other things, can build their own shader effects.
Google searching got me this far;
class Test(ShaderEffect):
inputProperty = ShaderEffect.RegisterPixelShaderSamplerProperty("Input", type(Test()), 0)
But I still get the error;
TypeError: cannot access protected
me...
How can I execute a large number of scripts with IronPython and avoid the startup cost of ipy.exe? By large I mean over 100. Each script is a simple acceptance test for a service application and will run very quickly.
The simplest approach I can think of is a cmd file that loops through the *.py files calling:
ipy <filename1>.py
ipy <f...
I'm trying to write a scripting engine to my C#/XNA game using IronPython and came across a problem.
public class Game1 : Game, IGFXEnabledGame
{
//stuff
}
In the Game1 constructor I do necessary initialization for script and then run it to create the Camera object. I try to move the following hard-coded Camera initialization to ...
I am pretty sure that python scripts will work in all three, but I want to make sure. I have read here and there about editors that can write CPython, Jython, IronPython and I am hoping that I am looking to much into the distinction.
My situation is I have 3 different api's that I want to test. Each api performs the same functionality...
As much as the console runner is nice, I enjoy the instant red/green view of a graphical runner such as NUnit or MSTest for quickly glancing at broken tests.
Does such a tool exist for Eclipse? I've tried Google but only found some awful standalone versions.
...
I try to use NHibernate from IronPython. I have copied the NHibernate dependencies to my C:\Users\shamel\python\HelloPy\libs directory.
I have this IronPython code:
import sys
sys.path.append("C:\Users\shamel\python\HelloPy\libs")
import clr
clr.AddReference("NHibernate")
clr.AddReference("LinFu.DynamicProxy")
clr.AddReference("NHibe...
Have an IronPython package named "Entities". That package contains an "Entity.py" file that defines a "Customer" class and an "Address" class.
If I run this program:
customer = Customer()
print customer.GetType().AssemblyQualifiedName
address = Address()
print address.GetType().AssemblyQualifiedName
I get this output:
IronPython.New...
This post in Mike Stall's blog states that
The last expression result is stored as the global variable "_", so you can retrieve it like so:
object o = m_python.GetVariable("_");
But currently in v2 scope has no such variable after executing, e.g.,
scriptEngine.CreateScriptSourceFromString("a=1+2;a+1", SourceCodeKind.Statements)...
We're aiming to implement a scripting mechanism, using DLR's Microsoft.Scripting and hosting assembly.
Now, someone knows about any performance difference between IronRuby 1.0 and IronPython 2.6?
To my understanding they have different compilers, but IronPython seems more mature and tested, but if anyone has documentation or knowledge ...
I'm using the same test code in cPython and IronPython, in cPython it works but I'm getting
"name all is not defined" in IronPython in asp.net . I wonder if I have to import some module to use it in IronPython or it's just not available?
lista = ['a','b']
listados = ['a','b','c']
aca = all(value in listados for value in lista)
...
I have a class I've written in C#. The class has two methods, the signatures being:
bool Navigate(string url)
bool Navigate(Uri url)
From what I gather, the IronPython runtime is supposed to try and select the best overload based on the passed-in argument. In my case, I'm passing in a string which I know to be non-null, yet I get the ...
Hello!
When interacting with F# libraries from IronPython it seems that Python function object are not automatically converted to the standard F# FastFunc function object when passed to a F# interface accepting a function as one of the parameters.
On the other hand, the Python function objects are nicely converted to System.Func<> if t...