[New-bugs-announce] [issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

STINNER Victor report at bugs.python.org
Mon Oct 11 05:50:03 EDT 2021


New submission from STINNER Victor <vstinner at python.org>:

#include <Python.h> should only define names which start with "Py" (Py, _Py, PY, _PY), but it now defines a structure called "CFrame" in Include/cpython/pystate.h.

We should either make the whole PyThreadState structure private (move it to the internal C API), or rename CFrame (to PyCFrame?).

----------
components: C API
messages: 403639
nosy: Mark.Shannon, vstinner
priority: normal
severity: normal
status: open
title: [C API] Rename CFrame or hide it to only export names starting with Py
versions: Python 3.11

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


More information about the New-bugs-announce mailing list