New submission from Serhiy Storchaka: As documented ChainMap supports not just dicts, but mappings. A mapping can be implemented not only as a hash table, and mapping keys can be not hashable. But ChainMap.__len__ and ChainMap.__iter__ work only with hashable keys.
This may be considered just as a documentation issue. But I think it would be nice to add the support of unhashable keys in 3.7. ---------- assignee: rhettinger components: Library (Lib) messages: 296236 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: len() and iter() of ChainMap don't work with unhashable keys type: behavior versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com