[issue11135] Redundant doc field in TypeSpec

2011-02-16 Thread Egon Smiwa
Egon Smiwa 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 c

[issue11135] Redundant doc field in TypeSpec

2011-02-16 Thread Egon Smiwa
Egon Smiwa added the comment: You bring the tp_doc parameter pointer into the ownership of the new typeobject? and tp_doc is assumed to be created by pyObject_malloc? IMO, if CPython wants to be the owner of the string parameter, then it should make a copy of that parameter (tp_doc) and