[pypy-issue] [issue1122] [cpyext] PyVarObject builtins and definition of Py_SIZE()
Stefan Behnel
tracker at bugs.pypy.org
Wed Apr 11 11:20:28 CEST 2012
Stefan Behnel <stefan_ml at behnel.de> added the comment:
I would prefer changing the builtin types instead of the macro. Especially since
changing the immutable types has the side effect of making access to their size
fast for C code.
Remember that a lot of CPython C-API code will never work unchanged in PyPy -
switching from Py_SIZE() to PyList_GET_SIZE() is really no big deal compared to
e.g. fixing up the usage of borrowed references.
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1122>
________________________________________
More information about the pypy-issue
mailing list