[issue39591] Functions in Python/traceback.c can take const pointer arguments

Serhiy Storchaka report at bugs.python.org
Tue Feb 11 05:10:27 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Even if the object is not modified currently in common case, it does not guarantee that it cannot be modified in uncommon cases, or that it cannot be modified in future after introducing changes in different files.

For example, if names was created by the legacy C API like PyUnicode_FromUnicode(), it will be modified by calling PyUnicode_READY().

----------

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


More information about the Python-bugs-list mailing list