Serhiy Storchaka added the comment: Dict has a special case for string keys. Is set have such optimization? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19187> _______________________________________