[pypy-issue] [issue1434] CPyExt errors with PyGObject

Christoph Reiter tracker at bugs.pypy.org
Sat Apr 6 16:33:18 CEST 2013

Christoph Reiter <reiter.christoph at gmail.com> added the comment:

tp_new call: https://git.gnome.org/browse/pygobject/tree/gi/_gobject/pygenum.c#n39

Ah, ok, thanks. The exception is: "type object 'PyGLibUserDirectory' has no
attribute '__enum_values__'".. probably from pyg_enum_new below.

Could it be that PyInt_Type.tp_new(int_subclass) calls new of the subclass
instead of the PyInt one?

.. I'm not that familiar with the Python C API.

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list