This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Arfrever, Mark.Shannon, jcea, tseaver
Date 2013-03-27.23:07:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364425678.0.0.946128025816.issue16676@psf.upfronthosting.co.za>
In-reply-to
Content
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);
History
Date User Action Args
2013-03-27 23:07:58Mark.Shannonsetrecipients: + Mark.Shannon, jcea, tseaver, Arfrever
2013-03-27 23:07:58Mark.Shannonsetmessageid: <1364425678.0.0.946128025816.issue16676@psf.upfronthosting.co.za>
2013-03-27 23:07:57Mark.Shannonlinkissue16676 messages
2013-03-27 23:07:57Mark.Shannoncreate