[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list