>   result = bar or default

I used to do this, but dropped this habit. Just to be on the safe side if in 
the future I extend bar to take value for which truth test evaluates to False. 
And for consistency across the codebase.

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

Reply via email to