[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

Jesús Cea Avión report at bugs.python.org
Thu Apr 19 02:03:05 CEST 2012


Jesús Cea Avión <jcea at jcea.es> added the comment:

"PyErr_NoMemory()" returns always NULL, but it is declared as returning "PyObject *".

Could we change "return PyErr_NoMemory();" to "PyErr_NoMemory(); return NULL;"?. Maybe with some comment... A cast would silence the compiler but could be unclear. What do you think?

This is not a problem in 3.2 because the function patched returns a "PyObject *".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14331>
_______________________________________


More information about the Python-bugs-list mailing list