[issue20385] Argument Clinic: Support for __new__ not checking _PyArg_NoKeywords for sub-classes

Tal Einat report at bugs.python.org
Sat Jan 25 18:26:50 CET 2014


Tal Einat added the comment:

I'm still seeing the first argument to a __new__ function as "groupbyobject *" instead of "PyTypeObject *". This causes the following error (for example):

./Modules/itertoolsmodule.c:112:34: error: no member named 'tp_alloc' in 'groupbyobject'
    gbo = (groupbyobject *)type->tp_alloc(type, 0);

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20385>
_______________________________________


More information about the Python-bugs-list mailing list