[New-bugs-announce] [issue39428] allow creation of "symtable entry" objects from Python

Carl Meyer report at bugs.python.org
Wed Jan 22 18:44:18 EST 2020

New submission from Carl Meyer <carl at oddbird.net>:

Currently the "symtable entry" extension type (PySTEntry_Type) defined in `Python/symtable.c` defines no `tp_new` or `tp_init`, making it impossible to create instances of this type from Python code.

I have a use case for pickling symbol tables (as part of a cache subsystem for a static analyzer), but the inability to create instances of symtable entries from attributes makes this impossible, even with custom pickle support via dispatch_table or copyreg.

If the idea of making instances of this type creatable from Python is accepted in principle, I can submit a PR for it.


messages: 360522
nosy: carljm
priority: normal
severity: normal
status: open
title: allow creation of "symtable entry" objects from Python
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list