09.08.21 17:05, [email protected] пише:
> Two possibilities:
> 
> 1) the perfectly backward compatible, retrun False
> 2) the more pythonic, return the empty value of the object (i.e. "" for str)

The problem is that for backward compatibility it should return True.
And empty string's boolean value is false.

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

Reply via email to