ironpython

How can I use –X:Frames in Ironpython?

Visual Studio 2010 + Ironpython for .net4 I want to use numpy in ironpython, and they said I must use frames support. So, I should running ipy with -X:Frames or -X:FullFrames on the command line. But, I have two questions: 1.how can i use -X:Frames or -X:FullFrames in Ironpython Interactive console? 2.If I use C# 4 to load py which ...

Speed of code execution: IronPython vs C#?

Am trying to provide a response from a Managers perspective to the question: What overall performance penalty will we incur if we write the application in IronPython instead of C#? This question is directed at those who might have already undertaken some testing, benchmarking or have completed a migration from C# to IronPython, in order...

Hide .svn folders in a VS2010 IronPython project

I'm working on an IronPython project on VS2010 and I've notice that for the python project (which is setup as a Console project, but really just contains a number of scripts that are hosted in a C# app), everything that is in the project directory will show up in the VS solution explorer under that project. So, for example, the .svn fol...

breakpoints in SharpDevelop with IronPython

is it possible somehow to get the breakpoints to work in SharpDevelop with IronPython/Winforms? They work alright with other languages but with IronPython they just don't stop ...

Forcing to make floating point calculations

In IronPython is there any way to force the expression containing integer values to be calculated as floating point. For instance, I'd like the expression 1/3 to be evaluated as 1./3. with the result 0.333... I need this to make a simple run-time expression calculator within a C# project by means of IronPython. I cannot force us...

IronPython sample project deployment issue

Hi, I downloaded the VS2008 SDK v1.1 and opened the IronPythonProject C# example. My target is to deploy the IronPythonProject. So, I made the following steps: Build the PythonProject. F5 to run in the exp hive. File -> new project->New Project dialog: the IronPython project types appear with two types: Web, Windows and all thing works...

Why should C# developer learn IronPython?

We all knows that C# is a static language while Python is a dynamic language. But I want to know what are the features that Python has and c# does not. Also, is it advisable/beneficial to use IronPython with c# in the same application? Also what points I should focus to learn before I try to convince my boss to use IronPython? ...

How can I use –X:Frames in C# 2.0 to load ironpython?

I can use ironpython 2.6 (not for .net 4) load numpy, running ipy with -X:Frames or -X:FullFrames on the command line. But, if I want to use Ironpython/DLR in C# 2.0 to load the py file, how can I use -X:Frames or -X:FullFrames? I tried it like this: var lang = Python.CreateLanguageSetup(null); lang.Options["Frames"] ...

deepcopy in IronPython Microsoft Visual Studio 2008

I want to do a deepcopy in IronPython Microsoft Visual Studio 2008, but I get error: IronPython.Runtime.Exceptions.PythonImportErrorException was unhandled by user code Message="No module named copy" Source="IronPython" StackTrace: at IronPython.Modules.Builtin.__import__(ICallerContext context, String name, Object globals,...

Using win32service module with IronPython

Hey,so I'm trying to take an existing IronPython script I have and convert it into a windows service that runs on one of our servers at all times. Unfortunately I can't seem to get the modules I need. I downloaded the pywin32 extensions (http://sourceforge.net/projects/pywin32/) but I can't install them because I only have IronPython ins...

How do i print the script line number in IronPython?

I am running an IronPython script inside a c# application, i am catching exceptions within the script and i wish to find out the script line at which the exception is thrown. This has to be done while the script is running ie. i do not wish the script to terminate in order to print the exception. Is this even possible? ...

Authenticated HTTP POST with XML payload using Python urllib2

I'm trying to send a POST message with a purely XML payload (I think) using urllib2 in IronPython. However, everytime I send it, it returns Error code 400 (Bad Request). I'm actually trying to mimick a Boxee remove queue item call for which the actual data packets looks like this (from WireShark): POST /action/add HTTP/1.1 User-Agent:...

Build .NET DLLs from Python code?

How do I make a DLL (.NET) written in python code (IronPython)? ...

How to make *.py files have the python icon in Win7?

Hi! Installed the IronPython tools for VS 2010 but it didn't associate the *.py files to VS, neither did it (obviously) change the *.py files' icon. How do I do that in Windows 7? ...

Ironpython tools for VS2010: how to debug python code with 'import'?

Hello. I have installed an IronPython tools for VS2010 and all works fine. But if i try to use an 'import' statement outside 'hello world', for example: import email Iron python will fail to debug with error message like 'cannot import mime from email'. Any hints how to avoid such errors or ironpython tools for vs2010 currently can't...

IronPython - Adding items very fast to a GUI ListView object

Hello, I'm using IronPython 2.6, Sharpdevelop 3.2 for GUI building and compiling, Pydev on Eclipse for writing the code and debugging. I recently had some trouble using IronPython and ListView objects. In my usecase I wanted to add ListViewItems i created in a thread very fast to an GUI ListView object. First problem I ran into was ...

How to use nose with IronPython ?

Hello all , I installed nose using the 'setup.py install' on the command line , I am able to run 'nosetests' and any python file matching testMatch regular expression is picked up and tests are automated in the %python home%\Scripts directory. Now I want nose to work with my iron Python files , how do I install nose on the %Iron Python ...

How to use decorator?

In SharpDevelop, I want to create a dll which contains a static methon, void Main(string[] args). Some one said I should use decorator to restrict the function in IronPython. I found "@staticmethod", but others, "void", "string[] args", how to restrict them? class MyClass: def __init__(self): pass @staticmethod ...

Can Ironpython be used to run multiple Python Virtual Machine Instances in parallel?

Inspired from the game GunTactyx, where you write programs controlling fighting robots. Guntactyx used the Small language, that later is called Pawn. I am looking into using Python as the scripting language. My concerns are: Interfacing to C# The scripts should interface into C# through simple functions, doing stuff like scanning fo...

Why is IronPython code failing?

Hello, I am working through IronPython in Action. The following code fails at the line that reads label=Label() The error returned is NameError: name 'Label' is not defined This is exactly as in the book. And I don't know why it can't resolve the Label class...especially since it resolves the Form class with no problems. Any ideas? ...