Author loewis
Recipients loewis
Date 2011-02-19.16:38:30
SpamBayes Score 0.000100865
Marked as misclassified No
Message-id <1298133512.09.0.818351697222.issue11249@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, memory management for the Py_tp_doc slot in PyType_FromSpec is ill-defined. The doc string being passed is stored in the type object as-is, but later released with PyObject_Free. To make this consistent, PyType_FromSpec should copy the string, so that it's guaranteed that relasing the memory matches allocation.

Without this patch, users will have to hold onto the type objects they get from PyType_FromSpec "forever".
History
Date User Action Args
2011-02-19 16:38:32loewissetrecipients: + loewis
2011-02-19 16:38:32loewissetmessageid: <1298133512.09.0.818351697222.issue11249@psf.upfronthosting.co.za>
2011-02-19 16:38:30loewislinkissue11249 messages
2011-02-19 16:38:30loewiscreate