Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

> These macros can be abused to be used as l-value

You could simply document, "don't do that".  Also if these is a need to make an 
assignment, you're now going to have to create a new setter function to fill 
the need.

We really don't have to go on thin ice converting to functions that might or 
might not be inlined depending on compiler specific nuances.

AFAICT, no one has ever has problems with these being macros.  There really 
isn't a problem to be solved and the "solution" may in fact introduce new 
problems that we didn't have before.

Put me down for a -1 on the these blanket macro-to-inline function rewrites.  
The premise is almost entirely a matter of option, "macros are bad, functions 
are good" and a naive assumption, "inline functions" always inline.

----------
nosy: +lemburg, rhettinger

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

Reply via email to