[Mono-devel-list] porting mono to python

Jonathan Hogg jonathan at onegoodidea.com
Wed Jul 9 09:58:36 EDT 2003

On 9/7/03 13:04, Geiregat Jonas wrote:

> Hey,
> I'm thinking of making mono work under python.
> I would like some idea's on how to do this .. some guide lines so I can
> get started ....

It depends on what you mean by "making mono work under python". If you mean
bridging mono and Python so that Python can call mono methods and exchange
data with mono, then I guess you'd need to look at either the embedding API
of Mono and the extension API of Python, or the embedding API of Python and
the P/Invoke API of Mono.


Connecting the two together for invoking methods should be easy enough;
mapping types across the two will be a little trickier: simple types like
integers and strings should be easy enough, for user-defined classes I guess
you could come up with proxy objects of some form - this will be easier from
the Python side where objects are completely dynamic.

If you mean making Python a .NET language, then you're facing a fairly hefty
task - though it would be very cool. I guess your best bet there would be to
study the Java version of Python and see how easily Python could be
re-written for .NET.


If you mean re-writing Mono in Python then I'd say you're barking mad ;-)


More information about the Mono-devel-list mailing list