[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

Eric Snow report at bugs.python.org
Fri Sep 13 09:33:29 EDT 2019


New submission from Eric Snow <ericsnowcurrently at gmail.com>:

A "PyInterpreterState *interp" field on PyTypeObject would allow us to quickly access the originating interpreter from any object.  This will help us avoid more costly lookups.  The additional pointer used for this should not have a significant impact on the memory usage of CPython.

----------
components: Interpreter Core
messages: 352325
nosy: eric.snow, petr.viktorin, scoder, steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: Add a "PyInterpreterState *" field to PyTypeObject.
type: enhancement
versions: Python 3.9

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


More information about the Python-bugs-list mailing list