[pypy-issue] Issue #2230: anonymous structure members can't be found (pypy/pypy)
Saul St. John
issues-reply at bitbucket.org
Tue Jan 26 14:03:03 EST 2016
New issue 2230: anonymous structure members can't be found
https://bitbucket.org/pypy/pypy/issues/2230/anonymous-structure-members-cant-be-found
Saul St. John:
Attached code works on CPython 2.7.10, fails under pypy 4.0.1 with this exception:
Traceback (most recent call last):
File "/tmp/test.py", line 12, in <module>
o.x = 1
File "/home/saul/Downloads/pypy-4.0.1-linux_x86_64-portable/lib_pypy/_ctypes/structure.py", line 122, in __set__
obj._buffer.__setattr__(self.name, arg)
AttributeError: C Structure has no attribute x
More information about the pypy-issue
mailing list