Raymond Hettinger <raymond.hettin...@gmail.com> added the comment: > What about returning another dict_items instead of a set?
That API ship has already sailed. The published API guarantees that a set is returned — there is no changing that. The question is whether we care enough to provide an optimized implementation that doesn't call __hash__() when the hash value has already been computed and stored. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40889> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com