]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport 2.193:
authorGuido van Rossum <guido@python.org>
Fri, 11 Oct 2002 20:37:58 +0000 (20:37 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Oct 2002 20:37:58 +0000 (20:37 +0000)
commite5be24ca18062267ba675156029e5814f511cf5b
tree0a0c926142ce0dd28ec50ef4b96d5ce35aaa3586
parent1759eb778e6da09d90085779f20b68a7375d16cd
Backport 2.193:

PyObject_Init[Var] is almost always called from the PyObject_NEW[_VAR]
macros.  The 'op' argument is then the result from PyObject_MALLOC,
and that can of course be NULL.  In that case, PyObject_Init[Var]
would raise a SystemError with "NULL object passed to
PyObject_Init[Var]".  But there's nothing the caller of the macro can
do about this.  So PyObject_Init[Var] should call just PyErr_NoMemory.
Objects/object.c