Bools and explicitness [was Re: PyWart: The problem with "print"]
Devin Jeanpierre
jeanpierreda at gmail.com
Thu Jun 6 12:39:59 EDT 2013
More information about the Python-list mailing list
Thu Jun 6 12:39:59 EDT 2013
- Previous message (by thread): Bools and explicitness [was Re: PyWart: The problem with "print"]
- Next message (by thread): Bools and explicitness [was Re: PyWart: The problem with "print"]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Bools and explicitness [was Re: PyWart: The problem with "print"]
- Next message (by thread): Bools and explicitness [was Re: PyWart: The problem with "print"]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list