Message128857
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". |
|
Date |
User |
Action |
Args |
2011-02-19 16:38:32 | loewis | set | recipients:
+ loewis |
2011-02-19 16:38:32 | loewis | set | messageid: <1298133512.09.0.818351697222.issue11249@psf.upfronthosting.co.za> |
2011-02-19 16:38:30 | loewis | link | issue11249 messages |
2011-02-19 16:38:30 | loewis | create | |
|