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

Serhiy Storchaka report at bugs.python.org
Sun Feb 9 07:35:04 EST 2020


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

They cannot. PyObject cannot be const because the code that uses it can change its reference counter even if it does not change any other fields.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list