Files
swift/test/unit/common
Alistair Coles b17dd7ec75 Make ShardRange.OuterBound a proper singleton
ShardRange.OuterBound had the singleton-like property of all instances
of the same class being equal, but did not prevent multiple instances
being created.  Instead, ShardRange.MIN and ShardRange.MAX are used to
hold single instances of each outer bound.

The ShardRange.OuterBound equality property was achieved by overriding
the default __eq__ method, but as a consequence the type was not
hashable, preventing it being used in lists or as a dict key without
also overriding the default __hash__ method.

This patch makes ShardRangeOuterBound a proper singleton, removing the
need to override __eq__ or __hash__.

Change-Id: I21292e7991e93834b35cda6f5daea4c552a8e999
2021-03-24 12:00:55 +00:00
..
2021-03-10 19:09:13 +00:00
2010-07-12 17:03:45 -05:00
2018-11-01 20:52:33 +00:00
2020-04-03 21:22:38 +02:00
2018-03-13 12:06:07 +00:00
2017-11-07 15:39:25 +11:00
2020-05-27 03:19:13 +00:00