Function passed as an argument returns none

Chris Angelico rosuav at gmail.com
Thu Oct 2 00:02:58 EDT 2014


On Thu, Oct 2, 2014 at 12:29 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> So by now you know there are 2 kinds of return:
>
> So the morals in short:
>
> 1. Stick to the return that works -- python's return statement --
> and avoid the return that seems to work -- the print statement

Please. There are not two types of return; there are two completely
different things here. Don't pretend that print is a bad form of
return. It isn't.

ChrisA



More information about the Python-list mailing list