Code blocks as parameters
Greg Ewing
see at my.signature
Thu May 3 02:23:36 EDT 2001
James_Althoff at i2.com wrote:
>
> there would be, I guess, the issue that the ":" makes "function():" _look_
> more like a statement
My conception was that it would really *be* a statement,
not just look like one, so tough luck - it wouldn't be
able to return a value.
Not ideal, but then neither is the whole statement/expression
divide generally.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list