Message 371549 - Python tracker

Message371549

Author brandtbucher
Recipients Aaron Hall, brandtbucher, chaburkland, curtisbucher, gvanrossum, josh.r, justjais, mark.dickinson, rhettinger, scoder, serhiy.storchaka, slam, steve.dower, xtreak
Date 2020-06-15.14:24:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592231074.43.0.0848175514044.issue36144@roundup.psfhosted.org>
In-reply-to
Content
Similar behavior was considered and ultimately rejected by the PEP as being too specialized:

https://www.python.org/dev/peps/pep-0584/#concatenate-values-in-a-list

What you're asking for it subtly different, and even *more* specialized than that. I'd recommend just subclassing dict and overriding the operator, as the PEP suggests.
History
Date User Action Args
2020-06-15 14:24:34brandtbuchersetrecipients: + brandtbucher, gvanrossum, rhettinger, mark.dickinson, scoder, serhiy.storchaka, steve.dower, josh.r, Aaron Hall, slam, xtreak, curtisbucher, chaburkland, justjais
2020-06-15 14:24:34brandtbuchersetmessageid: <1592231074.43.0.0848175514044.issue36144@roundup.psfhosted.org>
2020-06-15 14:24:34brandtbucherlinkissue36144 messages
2020-06-15 14:24:33brandtbuchercreate