Hi, On Sun, 7 Oct 2018 at 18:05, Barry Scott <ba...@barrys-emacs.org> wrote: > (gdb) p/x table->tp_flags > $4 = 0x201eb > > But when the instance comes back to me they are: > > (gdb) p/x self->ob_type->tp_flags > $11 = 0x1208 > > Surely the flags should not have been changed?
Some flags change in CPython too. The change you're seeing might be correct, or it might not be---although I agree that the bits in the two values are very different. But it's hard for us to know at this point without knowing what you are doing exactly. You may be using only the standard parts of the CPython C API, or instead be using completely internal details. Can you try to extract a small CPython extension module as C code, containing the usual kind of PyTypeObject definitions and calls to some PyXxx() functions, and which behaves differently on CPython and on PyPy? That would help us understand the problem. A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev