On 6/17/20 5:42 AM, artem6191 wrote:
> So yeah, we can "if <expression>: return", but why not?
>
>From Pep 20 (The Zen)

There should be one-- and preferably only one --obvious way to do it.


We don't add a second way to do something just because we can, there
needs to be some clear need that the existing way doesn't handle.

-- 
Richard Damon
_______________________________________________
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/6KQWWP4NCKUA3TSOK3N5KCPXIQCNW6U4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to