[IronPython] My takes on C Extensions for IronPython

Giles Thomas giles.thomas at resolversystems.com
Fri Oct 19 20:28:51 CEST 2007


Seo Sanghyeon wrote:
> The discussion is getting very confusing, 
>   
It is indeed!

> The good news is that this part is already developed, debugged, and pretty much finished -- for Python 2.3 to 2.6, and for wide and narrow unicode builds of Python. Get it here (~ 1600 lines):
> http://pythonnet.svn.sourceforge.net/svnroot/pythonnet/trunk/pythonnet/src/runtime/runtime.cs
>
> Assuming that ZPL (which is OSI-certified) is okay, it would be strange not to use this.
>   
I'm a bit confused here...  Unless I'm completely misunderstanding the 
code, it looks like it's a set of DllImports allowing you to access the 
CPython C extensions API from managed code.  This let's you write 
managed code that extends CPython - which I assume is the Python.NET 
developers' intention - but we're trying to write unmanaged code to 
extend IronPython.  Am I missing some obvious way in which we could use 
it?   I guess it would work as a template to follow when writing the 
equivalent for calling into IronPython...?


Regards,

Giles

-- 
Giles Thomas
MD & CTO, Resolver Systems Ltd.
giles.thomas at resolversystems.com
+44 (0) 20 7253 6372

We're hiring! http://www.resolversystems.com/jobs/ 

17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79 
Registered in England and Wales as company number 5467329.
Registered address: 843 Finchley Road, London NW11 8NA, UK




More information about the Ironpython-users mailing list