[pypy-issue] [issue1182] [cpyext] PyObject_GetIter() does not validate the iterator it returns

Amaury Forgeot d Arc tracker at bugs.pypy.org
Mon Jun 18 23:13:32 CEST 2012

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

> I can easily add a .next() method to a Python object that is already
> referenced by a C extension, thus (potentially?) bypassing the validation.
Yes, type.__setattr__ correctly update slots for the type and all its known subtypes.  This is 
not yet implemented in pypy though.

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

More information about the pypy-issue mailing list