from future import pass_function

Devin Jeanpierre jeanpierreda at gmail.com
Thu Jul 26 12:00:53 CEST 2012


On Thu, Jul 26, 2012 at 5:42 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> You omit the one control flow statement that could actually be turned
>> into a function, raise. None of the rest could in Python (except
>> class), and one of the rest couldn't in any language (def).
>
> Well, if/while/for could be functions. So could with, probably. Now,
> def would be a little tricky...

In Haskell, sure.

-- Devin



More information about the Python-list mailing list