On Thu, Aug 29, 2019 at 5:00 PM Andrew Barnert <abarn...@yahoo.com> wrote:
> On Aug 29, 2019, at 15:28, Guido van Rossum <gu...@python.org> wrote: > > > > A wart will be that we can make `int | None` work but we shouldn't make > `None | int` work (I don't want to add any new operator overloads to > `None`, it should always be an error). > > Is there a reason that type.__ror__ wouldn’t handle that, something funky > about type, or about builtin types in general, that I’m forgetting? > Handn't thought of `__ror__`. I guess that would work, so never mind on that wart :-) -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him/his **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ 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/EIO3PX33TNOZUWIXC7T3JE3CZE6XZGGJ/ Code of Conduct: http://python.org/psf/codeofconduct/