473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Difference between CPython, Python for .NET and IronPython?

What is the difference between CPython, Python for .NET, and IronPython?

For example, if I'm running IronPython, can I access modules such as Numeric
and numarray?

As I understand it, interoperability with C# and .NET works in both
directions with IronPython, but CPython modules cannot be imported, or?

With Python for .NET I can import the .NET Framework and continue using
CPython modules, or?

What is the roadmap for IronPython, will it be possible to import CPython
modules in the near future?

One last question, is IronPython cross-platform. That is, can I use
IronPython with Mono?

Carl
Feb 18 '06 #1
3 5345
Carl Johan Rehn wrote:
What is the difference between CPython, Python for .NET, and IronPython?

For example, if I'm running IronPython, can I access modules such as Numeric
and numarray?

As I understand it, interoperability with C# and .NET works in both
directions with IronPython, but CPython modules cannot be imported, or?

With Python for .NET I can import the .NET Framework and continue using
CPython modules, or?

What is the roadmap for IronPython, will it be possible to import CPython
modules in the near future?

One last question, is IronPython cross-platform. That is, can I use
IronPython with Mono?

Carl

I have asked similar 'question' some weeks ago in the German Python
newsgroup.
It seems, that that Pythonistas have generally not much interest in
IronPython waiting for at least release 2.0 of it which is _perhaps_
expected to support Mono.
It seems, that usage of IronPython is currently limited to Windows
platform, but I was not able to attract any expert on it to give a clear
answer to that.
My own short test has shown, that compiled DLLs (extension modules)
don't work in IronPython and the created .exe-s of simple Python scripts
fail to run.
Curious to hear if there will be any expert response to your posting
here (except replies from people like me, who have no idea about the
subject themselves).

Claudio
Feb 18 '06 #2
> For example, if I'm running IronPython, can I access modules such as Numeric
and numarray?
AFAIK not. You can run pure python modules, but not extensions
containing native code.
As I understand it, interoperability with C# and .NET works in both
directions with IronPython, but CPython modules cannot be imported, or?
If they are pure python they can. However, there isn't e.g. a os-module
in IronPython (at least on mono under MacOSX) - so I guess the situation
is similar to Jython: you are basically limited to what the host-runtime
delivers.
With Python for .NET I can import the .NET Framework and continue using
CPython modules, or?
Yes. It's a bridge. Problem is: you can't use Python-Objects in
..NET-code, which is at least theoretically possible in IronPython (not
sure if it has something like the jythonc of jython that makes that
possible for jython, or if it can be done more automagically)

What is the roadmap for IronPython, will it be possible to import CPython
modules in the near future?
I doubt it - it's just not the goal, after all you want the CLR
precisely for _not_ needing bindings for C-libs on various platforms.
However, I guess a goal is that you get all python modules in IronPython
that are availablein the standard dist to make pure-python modules run
out of the box. But I don't have any insights on that.
One last question, is IronPython cross-platform. That is, can I use
IronPython with Mono?

Yes, I did so under mono/MacOSX.

Diez
Feb 18 '06 #3
Claudio Grondi wrote:
I have asked similar 'question' some weeks ago in the German Python
newsgroup.
It seems, that that Pythonistas have generally not much interest in
IronPython waiting for at least release 2.0 of it which is _perhaps_
expected to support Mono.


My understanding is that Mono developers are trying to make each
release of Mono support whatever the last release of IronPython was.
So there might be a lag, or you have to run a version behind, to use
Mono. But it is supported. At least, I think I read something to that
effect in the IronPython archives; I haven't tried it.

My more vague impression is that most Python people are happy enough
with CPython (because they better be happy, because that's what we've
had), and at least people like myself dread nothing more than trying to
install software or platforms. I suppose there's also a group who are
interested in these interpreter/runtime level issues, but are working
away on PyPy. PyPy has stolen away at least one major developer from
Jython (though in all fairness I think he'd mostly left anyway).

That said, I think concrete instructions on exactly how to get
IronPython up and working -- for someone with no .NET experience or
familiarity with that toolset -- would be an excellent way to bring
more attention to IronPython from the existing Python community.

Ian

Feb 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carl Waldbieser | last post by:
Has anyone had any experience embedding a CPython engine in a .NET application? In the COM/ActiveX world, it was pretty easy to use Mark Hammond's win32 modules to create a script engine component...
1
by: John Machin | last post by:
Here are some data points that illustrate the improvement in speed since 2.1 for one (probably atypical) application: rummaging through a 120MB Microsoft Excel spreadsheet file using the xlrd...
6
by: Siegfried Heintze | last post by:
I love the typing assist I get when using C# in VS2005 to write COM clients. I need to write a program to automate some tasks in outlook. Givin that the typing assist feature is very important to...
6
by: [david] | last post by:
returns poorly formatted values: '13.3' ''
3
by: Jack | last post by:
I learned a lot from the other thread 'Is a "real" C-Python possible?' about Python performance and optimization. I'm almost convinced that Python's performance is pretty good for this dynamic...
1
by: Christof Hoeke | last post by:
hi, I was wondering if there is any way to use XSLT2 or maybe even XQuery with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I have not tried Saxon.NET with IronPython but suspect...
22
by: dmitrey | last post by:
Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are...
7
by: Fredrik Lundh | last post by:
M.-A. Lemburg wrote: Should that matter? Isn't IronPython pure CLR? </F>
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.