[pypy-issue] [issue1122] [cpyext] PyVarObject builtins and definition of Py_SIZE()

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed Apr 11 11:36:39 CEST 2012

Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

> I would prefer changing the builtin types instead of the macro.
But why?  since Py_SIZE() usage is discouraged for builtin type, which code 
would benefit of a mirrored ob_size?

Anyway, is there code that expects Py_SIZE() to be fast and allow 
PyList_GET_ITEM to be very expensive?

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list