Message185387
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); |
|
Date |
User |
Action |
Args |
2013-03-27 23:07:58 | Mark.Shannon | set | recipients:
+ Mark.Shannon, jcea, tseaver, Arfrever |
2013-03-27 23:07:58 | Mark.Shannon | set | messageid: <1364425678.0.0.946128025816.issue16676@psf.upfronthosting.co.za> |
2013-03-27 23:07:57 | Mark.Shannon | link | issue16676 messages |
2013-03-27 23:07:57 | Mark.Shannon | create | |
|