Ant wrote:
> Fair enough. I've just found this as well, which implies that lambda
> isn't being killed off in 3.0:
>
> http://www.python.org/dev/peps/pep-3100/
>
> In particular:
> "Lambdas will have to be parenthesized [23]"
>
Also: http://www.python.org/doc/essays/ppt/accu2006/Py3kACCU.ppt
s
Fair enough. I've just found this as well, which implies that lambda
isn't being killed off in 3.0:
http://www.python.org/dev/peps/pep-3100/
In particular:
"Lambdas will have to be parenthesized [23]"
--
http://mail.python.org/mailman/listinfo/python-list
"Ant" wrote:
> No, I remembered correctly:
> http://www.artima.com/weblogs/viewpost.jsp?thread=98196
> but probably not until Python 3.0.
however,
http://mail.python.org/pipermail/python-dev/2006-February/060415.html
(one would have thought that someone might have added a note to
the comments o
No, I remembered correctly:
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
but probably not until Python 3.0.
--
http://mail.python.org/mailman/listinfo/python-list
Ant wrote:
> IIRC the lambda form is probably going
> to be removed at some point, as it is not needed:
You remember incorrectly.
--
http://mail.python.org/mailman/listinfo/python-list
Why does the function have to be unnamed? you can easly nest function
definitions and refer to them. IIRC the lambda form is probably going
to be removed at some point, as it is not needed:
def outerfn():
dostuff()
def inner(x,y):
out = (x^y)
print out
return out
To expand on the above, Python does not have statements in its lambda
forms, but that does not stop pythoneers from getting the job done.
I use a named function for that, but if you have an issue with that, it
really is worth following Terry's advice as the subject has been
tackled at great length
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi all, I am a python newbie. why functions created with lambda forms
> cannot contain statements?
Because statement do not fit in expressions.
> how to get unnamed function with statements?
Can't.
Many discussions in archives (whi
hi all, I am a python newbie. why functions created with lambda forms
cannot contain statements?
how to get unnamed function with statements?
--
http://mail.python.org/mailman/listinfo/python-list