[pypy-dev] cpyext: Detecting pypy and other issues

Roger Binns rogerb at rogerbinns.com
Thu May 5 05:54:00 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/02/2011 01:36 PM, Roger Binns wrote:
> On 05/01/2011 11:30 PM, Antonio Cuni wrote:
>> you are right, we lack such a document. Do you feel like writing it? :-)
> 
> I'll make an initial stab at it this week.

Here you go:


https://docs.google.com/document/pub?id=1Ve9B6Gz5laV63zYFOlb_Lhe8ZBIw2V1756lquott6JI

Unfortunately building pypy myself didn't really achieve anything for my own
code.  PyPy behaved really bizarrely for example claiming functions don't
exist in my test code (standard unittest).  I get different behaviour if I
run under gdb or not.  Additionally objects aren't particularly useful.
With CPython there are some nice macros supplied with a .gdbinit, especially
pyo so you can tell what is going on.  Pypy is behaving like a randomized
black box!

If anyone wants to try for themselves then the code is at
http://code.google.com/p/apsw/source/checkout

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3CH1MACgkQmOOfHg372QQsxACdElcBC7z/um35YWZ9d0fTM212
DkMAniD7ibCOYQcfHIeB8U8aSpMu9EQ6
=RRZh
-----END PGP SIGNATURE-----



More information about the pypy-dev mailing list