[Python-Dev] Use of PyObject_NEW (original) (raw)

Martin v. Loewis martin@v.loewis.de
15 Mar 2002 20:45:56 +0100


Tim Peters <tim.one@comcast.net> writes:

> I recommend to deprecate PyObjectNEW (and correspondingly > PyObjectNEWVAR, PyObjectDEL).

I think that's pointless -- lots of code uses these things, and we have no effective way to deprecate pieces of the C API anyway. I'd be in favor of redefining #define PyObjectNEW PyObjectNew to get rid of the MemoryError bug, though.

Will do. I'll also change the docs to tell people tha the macros are there for historic reasons, only.

Regards, Martin