This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2016-12-17.10:09:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481969387.72.0.775552115596.issue28999@psf.upfronthosting.co.za>
In-reply-to
Content
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/
History
Date User Action Args
2016-12-17 10:09:47serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2016-12-17 10:09:47serhiy.storchakasetmessageid: <1481969387.72.0.775552115596.issue28999@psf.upfronthosting.co.za>
2016-12-17 10:09:47serhiy.storchakalinkissue28999 messages
2016-12-17 10:09:47serhiy.storchakacreate