[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

Erlend Egeberg Aasland report at bugs.python.org
Wed Mar 17 03:52:54 EDT 2021


Erlend Egeberg Aasland <erlend.aasland at innova.no> added the comment:

Pablo:
> I agree we should be careful here. There are several things to consider:

Yes, and thanks for your thorough reply and insights. I do not suggest converting macros blindly, and I have no intention of doing so. Apart from the three PyUnicode_*() cases mentioned in msg388870, I've not found any misuse of macros that reuse their arguments in the CPython code base.

Perhaps using a meta-issue is the wrong approach. I guess a PEP is too much? I'll start a thread on dpo (or on the list).

Thanks.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43502>
_______________________________________


More information about the Python-bugs-list mailing list