Mark Shannon added the comment:

This issue should be considered closed.

PyType_GenericNew is a convenience function for typeobjects to put in their 
tp_new slots. Calling it directly only works for some types. 
It worked in 3.2 for dict, but that was happenstance.

You could use 
((PyTypeObject *)type_object)->tp_new((PyTypeObject *)type_object, NULL, NULL);
to call the new method directly, but it would be better to call the 
type_object:
PyObject_CallObject(type_object, NULL);

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16676>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to