Amaury Forgeot d'Arc <[email protected]> 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 <[email protected]>
<https://bugs.pypy.org/issue1621>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to