Serhiy Storchaka added the comment: The core of the problem is in Set.
import collections.abc class S(collections.abc.Set): def __contains__(self, key): return False def __iter__(self): return iter(()) def __len__(self): return 0 S() < set() is False. set() < S() fails. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16373> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com