Message283480
In the comment to issue28765 patch Victor suggested to replace "Py_INCREF(Py_None); return Py_None;" with "Py_RETURN_NONE;".
Here is a Coccinelle [1] semantic patch that replaces all returns of new references to None, True or False with macros Py_RETURN_NONE, Py_RETURN_TRUE or Py_RETURN_FALSE correspondingly.
[1] http://coccinelle.lip6.fr/ |
|
Date |
User |
Action |
Args |
2016-12-17 10:09:47 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
2016-12-17 10:09:47 | serhiy.storchaka | set | messageid: <1481969387.72.0.775552115596.issue28999@psf.upfronthosting.co.za> |
2016-12-17 10:09:47 | serhiy.storchaka | link | issue28999 messages |
2016-12-17 10:09:47 | serhiy.storchaka | create | |
|