[Python-Dev] Re: Suggested memory API rules for 2.3

Tim Peters tim.one@comcast.net
Wed, 03 Apr 2002 18:47:39 -0500


[Tim]
>> That still needs to be done for PyObject_GC_xyz.  "Shall not
>> mix", "shall hold the GIL", "guaranteed binary compatibility",

[Neil, the PyObject_GC Master]
> Yes.

>> "shall not use in contexts requiring function designators"

> People need some form of GC free to initialize tp_free.  Extensions
> can't really use _PyObject_GC_Del, can they?

No they can't.  So we promise that PyObject_GC_Del can be used in contexts
requiring function designators.  We're sure that PyObject_GC_{New, NewVar,
Resize} can't, since they cast their results to a type "passed" as an
argument.

Harmonic convergence?