Bools and explicitness [was Re: PyWart: The problem with "print"]

Devin Jeanpierre jeanpierreda at gmail.com
Thu Jun 6 12:39:59 EDT 2013


On Thu, Jun 6, 2013 at 12:24 PM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> In Python, if you fail to use the return statement, then Python will return None, NOT some some value that just happens to be the last line executed in the function -- Ruby breaks the law of least astonishment.

Ruby comes from a tradition where this behavior is not astonishing.
Languages do not exist in a vacuum.

-- Devin



More information about the Python-list mailing list