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 <[email protected]> wrote:

> 04.12.19 20:18, Guido van Rossum пише:
> > On Tue, Dec 3, 2019 at 2:10 AM Serhiy Storchaka
> > <[email protected]
> > <mailto:[email protected]>> 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 -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/GAIB5HSOSHHH27DVB2OQCMQ2U4LBZEJO/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-- 
--Guido (mobile)
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/WHNOQMLQJTPNF3S2JQO7RVZNKAWBIMYB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to