Message153618
| Author |
eric.araujo |
| Recipients |
alexis, eric.araujo, tarek, tshepang |
| Date |
2012年02月18日.01:14:43 |
| SpamBayes Score |
0.0005971113 |
| Marked as misclassified |
No |
| Message-id |
<1329527684.2.0.820938528408.issue13948@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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.) |
|
History
|
|---|
| 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 |
|