Why Python won't work on .net
Martin v. Löwis
martin at v.loewis.de
Sun Dec 7 12:43:39 EST 2003
allenabethea at aol.com (Allenabethea) writes:
> Why is python incompatible with .net? Why can't python be coded in
> C#?
Who says that it cannot be coded in C#. It is a matter of fact that it
currently isn't, but it would be possible to reimplement the Python
interpreter in C# (instead of implementing it in C).
As for generating MSIL byte codes: This is also possible, and has been
demonstrated. It also has been demonstrated that an initial
implementation is likely to be *very* slow.
The question is whether a Python implementation for .NET would be CLS
compliant (CLS == Common Language Specification). The existing
implementation has shown that this is not possible without giving up
parts of the Python semantics.
> I am a new python tinkerer. I love the language. But what is its
> future but as a legacy tool?
No. Instead, most .NET users will find out that .NET is *not* a
juggernaut, but restricted to C#, in practice. So Python might even
survive .NET :-)
That said: If you think the Python-.NET story should be a better one,
feel free to contribute. Python is a volunteer effort, and without
volunteers, there will be no progress. Before starting, please have a
look at the excellent Python-for-.NET, which uses the native-code
Python implementation to host .NET, giving Python programs full access
to the framework.
Regards,
Martin
More information about the Python-list
mailing list