This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients lemburg, rhettinger, vstinner
Date 2021-10-14.22:06:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634249190.01.0.17411237094.issue45476@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2021-10-14 22:06:30rhettingersetrecipients: + rhettinger, lemburg, vstinner
2021-10-14 22:06:30rhettingersetmessageid: <1634249190.01.0.17411237094.issue45476@roundup.psfhosted.org>
2021-10-14 22:06:29rhettingerlinkissue45476 messages
2021-10-14 22:06:29rhettingercreate