Steven D'Aprano added the comment: If this is undefined, and I think it should be, the docs should explicitly say so. How is this?
The union and intersection operations select elements which appear in both operands, e.g. set([a, b, c]) & set([c, d, e]) returns set([c]). The selection is performed by equality, not object identity, and which specific object is returned (the c object from the first set or the second set) is an implementation detail and cannot be relied on. ---------- nosy: +stevenjd _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20902> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com