From: Josh Blum Date: Fri, 25 Sep 2009 19:54:33 +0000 (-0700) Subject: hash the tuple of hashes to id the current params X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=dcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f;p=debian%2Fgnuradio hash the tuple of hashes to id the current params --- diff --git a/grc/base/Block.py b/grc/base/Block.py index 203e878e..b2015cc4 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -239,7 +239,7 @@ class Block(Element): that are needed for the connections creation phase. @param n the nested data odict """ - get_hash = lambda: reduce(lambda x, y: x ^ y, [hash(param) for param in self.get_params()], 0) + get_hash = lambda: hash(tuple(map(hash, self.get_params()))) my_hash = 0 while get_hash() != my_hash: params_n = n.findall('param')