Serhiy Storchaka added the comment:

Dicts are hard optimized for string keys due to using them for globals and 
attributes lookup. Sets are optimized too, but rather for accident. We can be 
sure that dicts will be always optimized, but set optimization can be 
eliminated for the sake of simplification or if it will be proven that special 
casing strings has enough large negative effect on non-string items.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26314>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to