Author kristjan.jonsson
Recipients benjamin.peterson, christian.heimes, gregory.p.smith, kristjan.jonsson, loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka
Date 2013-03-20.04:50:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363755023.01.0.0755829322843.issue16475@psf.upfronthosting.co.za>
In-reply-to
Content
I thought I had explained this already, but can't find it, so here is the explanation:
It matches the pattern of r_ref(), which semantically is a combination of r_ref_register() and r_ref_insert().

It is a convenence calling pattern because these functions will either:
a) pass a NULL operand through,
b) succeed and pass the non-NULL operatn through
c) fail, and release the operand and return NULL.
In all cases, it is sufficient to look at the value of the operand after this transformation to know if everything was allright.  This simplifies all the calling sites where these things are used, e.g. by the R_REF() macro.
History
Date User Action Args
2013-03-20 04:50:23kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis, gregory.p.smith, mark.dickinson, pitrou, christian.heimes, benjamin.peterson, python-dev, serhiy.storchaka
2013-03-20 04:50:23kristjan.jonssonsetmessageid: <1363755023.01.0.0755829322843.issue16475@psf.upfronthosting.co.za>
2013-03-20 04:50:22kristjan.jonssonlinkissue16475 messages
2013-03-20 04:50:22kristjan.jonssoncreate