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 <storch...@gmail.com> wrote:

> 04.12.19 20:18, Guido van Rossum пише:
> > On Tue, Dec 3, 2019 at 2:10 AM Serhiy Storchaka
> > <storch...@gmail.com
> > <mailto:storch...@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-le...@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/GAIB5HSOSHHH27DVB2OQCMQ2U4LBZEJO/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-- 
--Guido (mobile)
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/WHNOQMLQJTPNF3S2JQO7RVZNKAWBIMYB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to