On 8/28/06, tobiah <[EMAIL PROTECTED]> wrote:
> def foo(thing):
>
>         if thing:
>                 return thing + 1
>         else:
>                 return -1
>
> def foo(thing):
>
>         if thing:
>                 return thing + 1
>         return -1
>
> Obviously both do the same thing.  The first is
> possibly clearer, while the second is more concise.
>
> Comments?
if there is nothing the else will check why put it there?
>
> --
> Posted via a free Usenet account from http://www.teranews.com
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to