from future import pass_function
rridge at csclub.uwaterloo.ca
Thu Jul 26 06:03:55 CEST 2012
Ross Ridge <rridge at csclub.uwaterloo.ca> wrote:
> No, they're very much alike. That's why all your arguments for print
> as function also apply just as well to pass a function. Your arguments
> had very little to do what what print actually did.
Chris Angelico <rosuav at gmail.com> wrote:
>Except that print / print() is executable. Execution proceeds through
>your code, comes to a "print", and goes off to handle that, then comes
>back to your code. But "pass" doesn't have code attached to it. Why
>should it be a function?
For consistancy with print. What it does doesn't matter any more than
what print did mattered.
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rridge at csclub.uwaterloo.ca
More information about the Python-list