On Wed, Mar 11, 2020 at 07:06:20PM +0200, Serhiy Storchaka wrote:
> 11.03.20 12:39, Steven D'Aprano пише:
> >https://bugs.python.org/issue35712
> >
> >I am disappointed because, to me, it is a fundamental part of Python's
> >object model that *everything* can be interpreted as a truthy/falsey
> >object (in the absence of bugs).
> 
> NotImplemented is special. It is more special than even None. It is 
> special enough to break the rule.

Thanks Serhiy, I've been watching the relevent b.p.o. issue and while 
I'm disappointed about the break to the clean truthiness model, I never 
came up with a strong enough argument against the change to argue :-) so 
I have to accept it. As you say, practicality beats purity.



-- 
Steven
_______________________________________________
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/AC6MP3MQDMXKDM5ELPETQC6DSR36XAAJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to