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 asvetlov, serhiy.storchaka, skrah, vstinner
Date 2014-01-29.13:49:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391003394.34.0.16321379297.issue20437@psf.upfronthosting.co.za>
In-reply-to
Content
Some time ago Victor proposed in issue16445 a large patch (275 changes) which replaces "Py_DECREF(expr); expr = NULL;" to safer "Py_CLEAR(expr);". That patch contained was so large because it included cases where expr is just a local variable, which are safe in general.

Here are much simpler patches which make replacements only for complex expressions.

These patches (as Victor patch) are generated automatically by the Coccinelle tool (http://coccinelle.lip6.fr/).
History
Date User Action Args
2014-01-29 13:49:54serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, asvetlov, skrah
2014-01-29 13:49:54serhiy.storchakasetmessageid: <1391003394.34.0.16321379297.issue20437@psf.upfronthosting.co.za>
2014-01-29 13:49:54serhiy.storchakalinkissue20437 messages
2014-01-29 13:49:54serhiy.storchakacreate