[pypy-issue] [issue1621] CPyExt: PyObject_GetItem() fails on NumPyPy array objects
Amaury Forgeot d'Arc
tracker at bugs.pypy.org
Wed Oct 9 17:39:08 CEST 2013
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
A unit test will tell for sure, but:
- z[2] returns a object of type numpy.int64
- this type has two base classes:
>>>> type(z[2]).__bases__
(<type 'numpypy.signedinteger'>, <type 'int'>)
- Both types have a different "TypeDef" (see interp_boxes.py)
- So typeobject.base_base() decides that there is no common solid base (=a layout for the PyObject structure), and raises
TypeError("multiple bases have instance lay-out conflict")
There is another implementation of best_base in objspace.std.typeobject, I don't remember why it could not be used.
----------
nosy: +amaury
status: unread -> chatting
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1621>
________________________________________
More information about the pypy-issue
mailing list