Eugene Toder added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to