[Python-Dev] Re: Suggested memory API rules for 2.3 (original) (raw)

Tim Peters tim.one@comcast.net
Wed, 03 Apr 2002 17:24:02 -0500


[the recommended 2.3+ API]

PyMem{Malloc, Realloc, Free} PyObject{Malloc, Realloc, Free} PyObject{New, NewVar}

[Michael Hudson]

We should probably provide an example of preprocessor hackery that lets you use these interfaces and remain backward compatible as far as possible. Maybe even a little .h file which we can suggest extension authors bundle with their extensions.

I would be delighted if somebody else did that. As I age, I find it increasingly difficult to do more than 103 things at once .