View Single Post
Old Feb 8th, 2006, 5:30 AM   #18
hydroxide
Programmer
 
Join Date: Apr 2005
Posts: 73
Rep Power: 4 hydroxide is on a distinguished road
Quote:
Originally Posted by Dietrich
hydroxide mentioned this blog from Guido himself:
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
... and you won't believe this, but... http://mail.python.org/pipermail/pyt...ry/060415.html

I suspect that this is NOT the end of the story.

I wouldn't mind anonymous functions moving to a comprehension-like syntax [I'm using "with" because it's environmentally friendly and sort of fits =]:
anon = foo(x, y*z) with x, y, z
anon(a, b, c)

z = 4
curried_anon = foo(x, y*z) with x, y

x = [(3,2), (2,4), (1,1)]
for elem in sorted(x, key=elem[1] with elem):
    ...

myobj.callback(button.click() with None)
-T.
[Oh yeah, DaWei's right about "\n\n" being a paragraph separator - textwrap treats the text it's fed as being a single paragraph - you might in theory have a double-spaced textfile, or summat]
hydroxide is offline   Reply With Quote