[issue3081] Py_(X)SETREF macros

Raymond Hettinger report at bugs.python.org
Sat Jun 28 22:12:00 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

-1 on the new macros.  The mnemonic doesn't work for me and the example 
code fragments are to my eyes less readable than before.  These add to 
the learning curve for reading and writing C extensions and provide 
nearly zero benefits.  

Assigning from an INCREF feels weird.  It is somewhat at odds with our 
coding style where we tend to stick with dirt simple C, trying to put 
operations on different lines rather than combining too many step in a 
single line.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3081>
_______________________________________


More information about the Python-bugs-list mailing list