Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Thank for the suggestion. We've considered it a couple of times before but there are downsides that get in the way: * The related mathematical concept of sets is unordered. * It isn't clear what ordering should be returned by set operations like intersection, union, and difference especially if we want the first two to be commutative and if we want consistent in-place and data removal options. * It gets in the way of existing performance optimizations some of which are significant. * Other programming languages don't seem to have found compelling the need for this. So yes, it is something we could do, but probably shouldn't. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42368> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com