This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients Aaron Hall, brandtbucher, gvanrossum, josh.r, mark.dickinson, rhettinger, scoder, serhiy.storchaka, slam, steve.dower, xtreak
Date 2020-02-27.00:29:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582763375.54.0.131156745175.issue36144@roundup.psfhosted.org>
In-reply-to
Content
What is ChainMap going to do? Normally, the left-most argument to ChainMap is the "top level" dict, but in a regular union scenario, last value wins. 

Seems like layering the right hand side's dict on top of the left hand side's would match dict union semantics best, but it feels... wrong, given ChainMap's normal left-to-right precedence. And top-mostness affects which dict receives all writes, so if  chain1 |= chain2 operates with dict-like precedence (chain2 layers over chain1), then that also means the target of writes/deletions/etc. changes to what was on top in chain2.
History
Date User Action Args
2020-02-27 00:29:35josh.rsetrecipients: + josh.r, gvanrossum, rhettinger, mark.dickinson, scoder, serhiy.storchaka, steve.dower, Aaron Hall, slam, xtreak, brandtbucher
2020-02-27 00:29:35josh.rsetmessageid: <1582763375.54.0.131156745175.issue36144@roundup.psfhosted.org>
2020-02-27 00:29:35josh.rlinkissue36144 messages
2020-02-27 00:29:35josh.rcreate