[New-bugs-announce] [issue45219] Expose indexing and other simple operations on dict-keys in internal API

Mark Shannon report at bugs.python.org
Thu Sep 16 07:21:18 EDT 2021


New submission from Mark Shannon <mark at hotpy.org>:

Specialization and other optimizations rely on shared dictionary key properties (version number, no deletions, etc).
However checking those properties during specialization is tricky and rather clunky as the dict-keys can only be tested indirectly through a dictionary.

We should add a few internal API functions. Specifically we want to know:

Is a key in a dict-keys?
What index is that key at?
Is a dict-keys all unicode?

----------
assignee: Mark.Shannon
messages: 401936
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Expose indexing and other simple operations on dict-keys in internal API

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


More information about the New-bugs-announce mailing list