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 belopolsky, python-dev, rhettinger, serhiy.storchaka, skrah
Date 2016-04-11.07:06:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460358385.43.0.661682622482.issue26200@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch that adds extra usages of the Py_SETREF() macro (in particular in deque implementation). It doesn't fix bugs or improve performance, but makes the code shorter and perhaps makes it more readable.

If you think that some of these changes really improve readability (I think not all of them), let me know and I'll commit selected changes. Otherwise I'll just close this issue.

Currently Py_XSETREF is used 118 times and Py_SETREF is used 59 times. py_setref_extra.patch adds 44 new usages of Py_SETREF.
History
Date User Action Args
2016-04-11 07:06:25serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, belopolsky, skrah, python-dev
2016-04-11 07:06:25serhiy.storchakasetmessageid: <1460358385.43.0.661682622482.issue26200@psf.upfronthosting.co.za>
2016-04-11 07:06:25serhiy.storchakalinkissue26200 messages
2016-04-11 07:06:25serhiy.storchakacreate