New submission from STINNER Victor <vstin...@python.org>:

Similarly to bpo-39573 (make PyObject opaque) and bpo-39947 (make PyThreadState 
opaque), I propose to add getter functions to access PyFrameObject members 
without exposing the PyFrameObject structure in the C API.

The first step is to identify common usage of the PyFrameObject structure 
inside CPython code base to add getter functions, and maybe a few setter 
functions as well.

frameobject.h is not part of Python.h, but it's part of the public C API. The 
long term plan is to move PyFrameObject structure to the internal C API to hide 
implementation details from the public C API.

----------
components: C API
messages: 367527
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Add getter functions for PyFrameObject and maybe move 
PyFrameObject to the internal C API
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to