On 02/14/2012 09:17 AM, Stefan Behnel wrote:
Stuffing the code for both CPython and PyPy into the same C source file may result in a noticeable increase in C code size at some point, but as long as the C preprocessor can filter it back out, at least the build times won't go up all that much, and it's not like a couple of compressed KBytes more would hurt a PyPI package these days.
This is unlikley to happen IMHO, because PyPy does not offer its own C API (yet?). The only C API supported by PyPy is cpyext, which is a (slowish) wrapper compatible with CPython.
The only places where the C code needs to be different is where Cython bypass the C API and directly manipulates the underlying C structures.
ciao, Anto _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev