[issue43643] importlib.readers.MultiplexedPath.name is not a property
New submission from Andreas Poehlmann : Hello, I was using the `importlib_resources` backport and encountered this issue, which is also present in cpython: `importlib.readers.MultiplexedPath.name` is not a property as required by `importlib.abc.Traversable` I can prepare a pull request if it helps. Cheers, Andreas -- components: Library (Lib) messages: 389615 nosy: ap--, jaraco priority: normal severity: normal status: open title: importlib.readers.MultiplexedPath.name is not a property type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps
Change by Andreas Poehlmann : -- keywords: +patch pull_requests: +22416 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23534 ___ Python tracker <https://bugs.python.org/issue42487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps
New submission from Andreas Poehlmann : Hello, I encountered an issue with collections.ChainMap, that was introduced when https://bugs.python.org/issue32792 got fixed. Iterating a ChainMap will call __getitem__ on its underlying maps: >>> from collections import UserDict, ChainMap >>> class MyDict(UserDict): ... def __getitem__(self, k): ... print("expensive computation", k) ... return super().__getitem__(k) ... >>> set(ChainMap(MyDict(a=1, b=2, c=3))) expensive computation a expensive computation b expensive computation c {'c', 'b', 'a'} -- components: Library (Lib) messages: 381971 nosy: ap-- priority: normal severity: normal status: open title: collections.ChainMap.__iter__ calls __getitem__ on underlying maps type: behavior versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue42487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com