[IronPython] Announcement: Project to get some CPython C extensions running under IronPython

Curt Hagenlocher curt at hagenlocher.org
Fri Oct 19 18:29:50 CEST 2007

On 10/19/07, Giles Thomas <giles.thomas at resolversystems.com> wrote:
> A question - if we were trying to produce something that, at a source
> level, looked like the CPython extensions API, is there any easy way
> that we could get that to be able to call back to IronPython?  I can
> imagine something like an init() function on the managed side that could
> pass a number of delegates over to the unmanaged code so that they could
> be called back at a later point, but is there a more elegant solution?

You could define a COM / COM-like interface (or set of interfaces),
implement them in C# and pass them to the C code.  This is definitely
cleaner but has the disadvantage of a tighter binding between the two parts
and a potentially much more painful versioning story.

Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071019/276a2412/attachment.html>

More information about the Ironpython-users mailing list