commit | d50185127f5cdc7241e5aa80d4d174113bf43b52 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Aug 24 04:47:42 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Aug 24 04:47:42 2002 +0000 |
tree | 824e150dc64f9fe7a4f6caa2fd7fc3b4980c7438 | |
parent | 045e51a9a557c829d184257b32d594e7b3c9ba8a [diff] |
Since instances of _TemporarilyImmutableSet are always thrown away immediately after the comparison, there in no use in caching the hashcode. The test, 'if self._hashcode is None', never fails. Removing the caching saves a few lines and a little time.