[New-bugs-announce] [issue24275] lookdict_* give up too soon
Jim Jewett
report at bugs.python.org
Sun May 24 07:08:29 CEST 2015
New submission from Jim Jewett:
The specialized lookdict_* variants replace themselves with the generic lookdict as soon as a non-unicode key is looked up.
They could reasonably leave the replacement to insertdict (line 819, currently assert rather than a replacement), when a non-unicode key is actually inserted into the dict.
While inserts are less common than (all lookups including insert), I see the main advantage as reducing the number of duplications of the replacement logic.
----------
components: Interpreter Core
messages: 243969
nosy: Jim.Jewett
priority: normal
severity: normal
status: open
title: lookdict_* give up too soon
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24275>
_______________________________________
More information about the New-bugs-announce
mailing list