09.08.21 17:05, fgalla...@gmail.com пише: > 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 -- 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/4Y33HQXL76KGKQ4MWZLR76QRHXTYF2SZ/ Code of Conduct: http://python.org/psf/codeofconduct/