This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jim.Jewett
Recipients Jim.Jewett
Date 2015-05-24.05:08:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432444109.96.0.971324850141.issue24275@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-05-24 05:08:30Jim.Jewettsetrecipients: + Jim.Jewett
2015-05-24 05:08:29Jim.Jewettsetmessageid: <1432444109.96.0.971324850141.issue24275@psf.upfronthosting.co.za>
2015-05-24 05:08:29Jim.Jewettlinkissue24275 messages
2015-05-24 05:08:29Jim.Jewettcreate