> On Mar 4, 2019, at 3:41 AM, Stefan Behnel <stefan...@behnel.de> wrote: > > James Lu schrieb am 04.03.19 um 03:28: >> I propose that the + sign merge two python dictionaries such that if there >> are conflicting keys, a KeyError is thrown. > > Please, no. That would be really annoying. > > If you need that feature, it can become a new method on dicts. > > Stefan If you want to merge it without a KeyError, learn and use the more explicit {**d1, **d2} syntax. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
- Re: [Python-ideas] PEP: Dict additi... Inada Naoki
- Re: [Python-ideas] PEP: Dict addition and subtraction Brandt Bucher
- Re: [Python-ideas] PEP: Dict addition and subtractio... Brett Cannon
- Re: [Python-ideas] PEP: Dict addition and subtra... Brandt Bucher
- Re: [Python-ideas] PEP: Dict addition and su... Neil Girdhar
- Re: [Python-ideas] PEP: Dict addition and su... Steven D'Aprano
- Re: [Python-ideas] PEP: Dict addition an... Brandt Bucher
- Re: [Python-ideas] PEP: Dict addition an... James Lu
- Re: [Python-ideas] PEP: Dict additi... Stefan Behnel
- Re: [Python-ideas] PEP: Dict ad... James Lu
- Re: [Python-ideas] PEP: Dict ad... Steven D'Aprano
- Re: [Python-ideas] PEP: Dict ad... James Lu
- Re: [Python-ideas] PEP: Dict additi... Steven D'Aprano
- Re: [Python-ideas] PEP: Dict ad... Josh Rosenberg
- Re: [Python-ideas] PEP: Dict ad... Guido van Rossum
- Re: [Python-ideas] PEP: Dict ad... Josh Rosenberg
- Re: [Python-ideas] PEP: Dict ad... Antoine Pitrou
- Re: [Python-ideas] PEP: Dict ad... Steven D'Aprano
- Re: [Python-ideas] PEP: Dict ad... Andre Roberge
- Re: [Python-ideas] PEP: Dict ad... Steven D'Aprano