[pypy-issue] [issue1498] Problems subclassing from a defined ctypes Structure

Amaury Forgeot d Arc tracker at bugs.pypy.org
Sat May 25 21:47:24 CEST 2013


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

The fix for issue1473 was incomplete.
Fixed with changeset ff06e504ab9c, thanks for the report!

Note that _fields_ are handled a bit differently than CPython:
- with CPython, _fields_ is inherited from the base class.
- PyPy considers that a subclass without _fields_ is equivalent to a class with 
_fields_=[], so it sets this _fields_=[] as a default value.

The resulting classes should behave the same, of course.

----------
nosy: +amaury
status: unread -> resolved

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1498>
________________________________________


More information about the pypy-issue mailing list