Message158687
| Author |
jcea |
| Recipients |
brett.cannon, eric.smith, eric.snow, gregory.p.smith, jcea, ncoghlan, python-dev, twouters |
| Date |
2012年04月19日.00:03:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334793785.23.0.482570207994.issue14331@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"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 *". |
|