Lisandro Dalcin wrote:
On Thu, Jul 23, 2009 at 5:42 PM, Terry Reedy<tjre...@udel.edu> wrote:
Lisandro Dalcin wrote:
On Thu, Jul 23, 2009 at 9:57 AM, Jean-Paul Calderone<exar...@divmod.com>
wrote:

True, CPython has C infrastructure.  What about the other Python
runtimes,
though?

Perhaps these other Python runtimes could implement the functionality
of PC/_subprocess.c and use ctypes for that ?
Is it sensibly possible to augment a C file with #ifdefs so that it can be
compiled either as a directly importable module or as a ctypes-accessible
shared library?


Of course it is posible... Moreover, you could likely reuse 100 % of
code intended for ctypes in implementing the extension module calls
intended for Python. Mac OS X could have some issues though (IIUC, .so
ext modules are not the same as .dylib dynamic libs, though perhaps
ctypes can still dlopen() .so files?)

However, how that would help these other Python runtimes without C
infraestructure ??

I believe someone just posted that PyPy and IronPython have ctypes and Jython is working on it. That is what triggered this post.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to