[Python-ideas] incremental hashing in __hash__

jab at math.brown.edu jab at math.brown.edu
Mon Jan 2 00:10:19 EST 2017


On Sat, Dec 31, 2016 at 5:39 PM, <jab at 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.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170102/44d04d5c/attachment.html>


More information about the Python-ideas mailing list