You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
collections.ChainMap.__iter__ calls __getitem__ on underlying maps #86653
New changeset 0be9ce3 by Andreas Poehlmann in branch 'master': bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) 0be9ce3
New changeset cf22aa3 by Miss Islington (bot) in branch '3.9': bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569) cf22aa3
Activity
ap commentedon Nov 28, 2020
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:
3 remaining items
rhettinger commentedon Nov 28, 2020
I had a discussion with the release manager and we're good to backport to 3.9 but not 3.8.
Serhiy, would you also take a look at this?
rhettinger commentedon Nov 30, 2020
New changeset 0be9ce3 by Andreas Poehlmann in branch 'master':
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534)
0be9ce3
rhettinger commentedon Nov 30, 2020
New changeset cf22aa3 by Miss Islington (bot) in branch '3.9':
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569)
cf22aa3