[issue27399] ChainMap.keys() is broken

2016-06-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue27399] ChainMap.keys() is broken

2016-06-27 Thread Zahari Dim
Changes by Zahari Dim : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue27399] ChainMap.keys() is broken

2016-06-27 Thread Zahari Dim
New submission from Zahari Dim: When trying to see if the keys() of a collections.ChainMap object are empty, it tries to compute the hash of the dicts that compose the ChainMap, giving rise to an error: In [1]: from collections import ChainMap In [2]: m = ChainMap([{'a':1}, {'b':2}]) In