ironpython

Are the "Iron" languages ready for prime time?

Is it okay to start using Iron Ruby and Iron Python in production systems? Also, are there any additional requirements for hosting them? And, for the bonus points, given that F# is a functional programming language in the same way that Python is, is there any advantage to using one over the other within the .NET framework? ...

Compiling an IronPython WPF project to exe

What is the best way to pack up an IronPython application for deployment? After scouring the web the best thing I've come up with (and what I'm currently doing) is using clr.CompileModules() to glue together my entire project's .py files into one .dll, and then having a single run.py do this to run the dll: import clr clr.AddReference(...

IronPython 2.7A1 execute from file source throws method not implemented error

I am trying to call a python script from a windows executable, ultimately the goal is a windows service that I can plug various scripts into, for example to pull back email attachments (since python has good imap support). Of course, I am a total newb so I am clueless :) I get an unhandled exception: System.NotImplementedException: T...

"No module named fcntl" when py script run from c# but works from windows command line

I am calling a python script that uses imaplib.py and get the "no module named fcntl" error. From searching I found that this module is only available in unix and so I wonder if the py script is confused about what os it is running under. Again, script works fine under windows run directly from the python directory. var engine = P...

How to execute IronPython script in separate thread and then suspend it?

Lets assume I have such code for testing. public class SimpleScheduler { public Script Script { get; set; } private Thread _worker; public void Schedule() { this._worker = new Thread(this.Script.Execute); this._worker.Start(); } public void Sleep() { //? } } SimpleScheduler ju...

how to reference compiled python code in IronPython?

we need to reference .py code from C#. This was solved using IronPython 2.6 The issue arises from the fact that .py code uses 'import customlib' which is a library compiled into customlib.pyc IronPython gives error: IronPython.Runtime.Exceptions.ImportException: No module named customlib attempted solution: in python code add referen...

How to add reference to a dynamic assembly for compiling another dynamic assembly?

In my AppDomain there are few dynamic assembly, when I try codeDom.CompileAssemblyFromSource to Compile another new assembly, I can't figure out a way to add those dynamic assemble to ReferencedAssemblies. foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { compilerParameters.ReferencedAssemblies.Add(assembly.L...

A working template-engine for IronPython?

I'd love to use a nice template-engine with IronPython but havent succeded doing so. Would be best to be able to without needing to add Python standard lib's. Dont know if that's possible. I like the Ruby Erb syntax, and hoped to be able to use something similar. ...

Python equivalent to C#'s using statement

Possible Duplicate: What is the equivalent of the C# using block in IronPython? I'm writing some IronPython using some disposable .NET objects, and wondering whether there is a nice "pythonic" way of doing this. Currently I have a bunch of finally statements (and I suppose there should be checks for None in each of them too - ...

Is IronPython a 100% pure Python variant?

I just downloaded the original Python interpreter from Python's site. I just want to learn this language but to start with, I want to write Windows-based standalone applications that are powered by any RDBMS. I want to bundle it like any typical Windows setup. I searched old posts on SO and found guys suggesting wxPython and py2exe. Apa...

Tail Call Optimization in Mono/Ironpython

Hi Everyone, given that CLR supports tail call optimization I was wondering if Mono, and consequently Ironpython running on Mono has support for TCO ? ...