On Sat, Dec 31, 2016 at 5:39 PM, <jab@math.brown.edu> wrote:
a set hashing algorithm is exposed as collections.Set._hash() in _collections_abc.py, which can be passed an iterable

(By which I meant to say, "which can be passed a set-like iterable such as a Keys- or ItemsView of an existing mapping, so that the hash can be computed from the existing data rather than copying it all into a new frozenset." Should have been more precise.)