merits of Lisp vs Python
greg
greg at cosc.canterbury.ac.nz
Thu Dec 14 16:48:13 EST 2006
Ken Tilton wrote:
> How close can Python get when code is involved? The reverse function
> signature is fixed, so can lambda help?
Lambda can be used if the body can be written as a
single expression. Otherwise you need to write the
function as a separate def. When the body is more
than a line or two, this is not usually much of
a problem, and is arguably more readable anyway.
--
Greg
More information about the Python-list
mailing list