Author eltoder
Recipients asvetlov, christian.heimes, daniel.urban, eltoder, jcea, pitrou, python-dev
Date 2012-12-08.20:42:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354999320.29.0.836434182607.issue16602@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you, Antoine.
This change has one effect that's worth highlighting in NEWS at least -- the PyWeakref_GET_OBJECT() macro now evaluates its argument twice. This can break existing code where the argument has side-effects, e.g. o = PyWeakref_GET_OBJECT(p++). I found one such case in our code base, but I don't know how common this is. So this is something to watch out for when upgrading.
I don't think there's a way to write PyWeakref_GET_OBJECT() in standard C90 without double evaluation.
History
Date User Action Args
2012-12-08 20:42:00eltodersetrecipients: + eltoder, jcea, pitrou, christian.heimes, asvetlov, daniel.urban, python-dev
2012-12-08 20:42:00eltodersetmessageid: <1354999320.29.0.836434182607.issue16602@psf.upfronthosting.co.za>
2012-12-08 20:42:00eltoderlinkissue16602 messages
2012-12-08 20:42:00eltodercreate