Quote:
|
Originally Posted by Dietrich
|
... 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]