On Tue, Apr 12, 2011 at 12:43 PM, Zero Piraeus <sche...@gmail.com> wrote:
>  return? expr
>
> isn't very pythonic - so how about one of these?
>
>  return expr if True
>  return expr else continue
>
> I kid, I kid ...

Or:

if expr:
  return it

Actually, I'm not sure how stupid an idea that is. Inside an if, 'it'
is the value of the condition. Might actually be useful in a few
places.... Naw, I think it's still a stupid idea.

Chris Angelico
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to