]> granicus.if.org Git - python/commit
Since instances of _TemporarilyImmutableSet are always thrown away
authorRaymond Hettinger <python@rcn.com>
Sat, 24 Aug 2002 04:47:42 +0000 (04:47 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 24 Aug 2002 04:47:42 +0000 (04:47 +0000)
commitd50185127f5cdc7241e5aa80d4d174113bf43b52
tree824e150dc64f9fe7a4f6caa2fd7fc3b4980c7438
parent045e51a9a557c829d184257b32d594e7b3c9ba8a
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.
Lib/sets.py