Creating C modules for Python under Cygwin

Martin v. Loewis martin at v.loewis.de
Mon May 6 02:53:07 EDT 2002


"Neil Hodgson" <nhodgson at bigpond.net.au> writes:

>    While you can link against executables, you should avoid doing so in most
> cases. The common case where this occurs is where a DLL is mostly a library
> that provides services consumed by the executable but a need appears for a
> call back into the executable. 

Isn't that precisely the case with the Python interpreter? Why should
that be avoided?

> You then have two binaries which depend on each others export
> libraries to link.

That wouldn't be the case for Python: the interpreter does not depend
on symbols in the extension modules.

>    COM. If you want to use COM objects implemented in Python in-process from
> arbitrary executables such as IIS or IE, then you can't require linking to
> another  executable.

That's a good reason.

Regards,
Martin



More information about the Python-list mailing list