Re: [Python-Dev] Re: Suggested memory API rules for 2.3
![](https://secure.gravatar.com/avatar/1efc90ff6075b7654d8a8ce6e51a2cd3.jpg?s=120&d=mm&r=g)
Tim Peters <tim.one@comcast.net> writes:
[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 <wink>.
I hope you don't mind if I wait a few weeks. Though I guess I wouldn't be aiming for a moving target now, I'll feel safer in a month or so... Cheers, M. -- First time I've gotten a programming job that required a drug test. I was worried they were going to say "you don't have enough LSD in your system to do Unix programming". -- Paul Tomblin -- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html
![](https://secure.gravatar.com/avatar/e79e2064f0ec68a0493ca5de758aeaa4.jpg?s=120&d=mm&r=g)
[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.
[Tim]
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 <wink>.
[Michael]
I hope you don't mind if I wait a few weeks. Though I guess I wouldn't be aiming for a moving target now, I'll feel safer in a month or so...
I'd wait too, if I were you -- the only thing we've actually finished so far are the hard parts <wink>. I hope /F and MAL will help too, since they know more about writing Python extensions in real life than anyone except the Queen Mum. and-now-that-she's-dead-she-probably-knows-everything-ly y'rs - tim
participants (2)
-
Michael Hudson
-
Tim Peters