Egon Smiwa <smiwa.e...@googlemail.com> added the comment:

Hello, I'm just a app developer which is embedding the python32.dll
and I assumed (and wished) python would simply copy my allocated 
parameter-string into the type object (( spec->name) is copied too). I looked 
in the source and see this ownership confirmed:

static void 
type_dealloc(PyTypeObject *type)
.... PyObject_Free((char *)type->tp_doc);

The typeobject owns tp_doc and even requires a special allocation 
(pyobject_malloc), which is no problem if the type creates its own copy; the 
hosting app is not connected.

----------

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

Reply via email to