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 christian.heimes, rhettinger, serhiy.storchaka, vstinner
Date 2017-02-06.16:04:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486397051.61.0.972018846983.issue29461@psf.upfronthosting.co.za>
In-reply-to
Content
I also always wanted to experiment this change. But I was afraid that providing such macros can encourage of overusing it. I don't want to wrap any test for NULL or -1 with these macros.

If we expect some benefit from using these macros, I would play with them in hot loops. For example in dict lookup function (unlikely comparing keys raise an exception or dict is modified in process of searching), in codecs (unlikely illegal sequence is occurred), etc.
History
Date User Action Args
2017-02-06 16:04:11serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, christian.heimes
2017-02-06 16:04:11serhiy.storchakasetmessageid: <1486397051.61.0.972018846983.issue29461@psf.upfronthosting.co.za>
2017-02-06 16:04:11serhiy.storchakalinkissue29461 messages
2017-02-06 16:04:11serhiy.storchakacreate