
Oh, that’s fair. I don’t think we should update Mapping or MutableMapping. People who want this for their own class can override __or__ and __ror__. On Wed, Dec 4, 2019 at 11:19 Serhiy Storchaka <storchaka@gmail.com> wrote:
04.12.19 20:18, Guido van Rossum пише:
On Tue, Dec 3, 2019 at 2:10 AM Serhiy Storchaka <storchaka@gmail.com <mailto:storchaka@gmail.com>> wrote:
And the same question for |. Should `{} | Mapping()` and `{} | []` work?
Ditto -- {} | Mapping() should work, but {} | [] should not.
set() | Set() falls back to Set.__ror__. collection.abc.Set.__ror__ is defined, but you suggested to not define it for collection.abc.Mapping. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GAIB5H... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido (mobile)