I hope this is the right place to ask, but if not just tell me to go away. At the request of a user I'm trying to get reportlab up to scratch for pypy. I have some fairly insignificant bugs in the tests related to Cpython-pypy differences and one C extension that crashes. Firstly what is the best way to approach debugging an extension segfault. Do I need to build pypy with debugging turned on or can I just build the extension like that? Are there any guidelines for making c extensions pypy friendly? Secondly how to cope with some fairly simple testing problems. One of my extensions appears to work, but clearly attempting to verify reference counts is failing ie from sys import getrefcount, _getframe doesn't work. I suppose there's no real point in trying to figure out refcounts for pypy. I have some errors related to co_filename eg
if os.path.splitext(obj.__code__.co_filename)[0]==modBn: AttributeError: 'builtin-code' object has no attribute 'co_filename'
but it's not clear to me if it's even possible to get the filename. Lastly what is the right way to get the platform as pypy not cpython? -- Robin Becker