Message153618
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.) |
|
Date |
User |
Action |
Args |
2012-02-18 01:14:44 | eric.araujo | set | recipients:
+ eric.araujo, tarek, alexis, tshepang |
2012-02-18 01:14:44 | eric.araujo | set | messageid: <1329527684.2.0.820938528408.issue13948@psf.upfronthosting.co.za> |
2012-02-18 01:14:43 | eric.araujo | link | issue13948 messages |
2012-02-18 01:14:43 | eric.araujo | create | |
|