STINNER Victor <vstin...@python.org> added the comment:

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.

----------

_______________________________________
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