[IronPython] Can IronPython be used to create COM DLLs?

Curt Hagenlocher curt at hagenlocher.org
Tue Oct 7 18:38:08 CEST 2008

The short answer to this is "no".
I suspect it might be possible to implement predefined COM interfaces from
IronPython and to use COM-.NET interop to make this code visible to COM
consumers.  But to actually create a DLL that can be loaded by the COM
loader would require a greater level of control over the bits being produced
for the DLL than we currently offer in the precompilation feature.

This may be something that the pywin32 extensions to CPython will support.

On Tue, Oct 7, 2008 at 5:56 AM, Alec Munro <alecmunro at gmail.com> wrote:

> Hi List,
> I'm embarking on a project to rewrite a DLL that my team uses. It's a
> COM DLL, and has to implement specific interfaces. Currently, it's
> written in C++, which I am not terribly proficient with. However, it's
> important that the code is as well tested and stable as possible. As
> such, I thought it would be worth investigating whether this is
> something that IronPython could do, as Python is something I'm quite
> familiar with.
> So, can IronPython create DLLs that implement specific COM interfaces?
> Thanks,
> Alec Munro
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081007/4b4476cc/attachment.html>

More information about the Ironpython-users mailing list