Éric Araujo <mer...@netwok.org> added the comment: Using a set is actually needed: list membership testing does not use hashes (but probably equality), whereas set and dict membership tests does uses hashes.
(I wrote a class with an __hash__ method that prints something when called, and “test() in []” does not print anything, whereas “test() in set()” does. So test_hash now uses a set again, and I added a comment to clarify why.) ---------- resolution: duplicate -> invalid superseder: Get rid of doctests in packaging.tests.test_version -> _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com