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 vstinner
Recipients arhadthedev, erlendaasland, gdr@garethrees.org, lemburg, mark.dickinson, rhettinger, vstinner
Date 2021-11-30.14:13:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638281583.86.0.517867120184.issue45476@roundup.psfhosted.org>
In-reply-to
Content
I created this issue to disallow macros like PyFloat_AS_DOUBLE() and PyDict_GET_SIZE() as l-value. It seems like this change by itself is controversial.

I proposed one way to implement this change: convert macros to static inline functions. I didn't expect that this conversion would be also controversial. For now, I abandon the static inline approach, to focus on the implementation which keeps macros: modify macros to use _Py_RVALUE() => PR 28976.

Once the PR 28976 will be merged and the PEP 670 will be accepted, we can reconsider converting these macros to static inline functions, then it should be non controversial.
History
Date User Action Args
2021-11-30 14:13:03vstinnersetrecipients: + vstinner, lemburg, rhettinger, mark.dickinson, gdr@garethrees.org, erlendaasland, arhadthedev
2021-11-30 14:13:03vstinnersetmessageid: <1638281583.86.0.517867120184.issue45476@roundup.psfhosted.org>
2021-11-30 14:13:03vstinnerlinkissue45476 messages
2021-11-30 14:13:03vstinnercreate