Anonymous functions are declared with lambda instead of def.
Lambda definitions are expressions and may therefore not contain if-statements and the like.
map(foo, list1, list2, list3) is like [foo(*tuple) for tuple in zip(list1, list2, list3)].
By using yield instead of return to provide a return value, you create a function that returns a generator object that returns one [...]
Archives for the Date February 27th, 2008
Learning Python: Chapter 17
Wednesday, 27 February 2008
Seven Languages in Seven Weeks
I Am a Strange Loop
A Short History of Nearly Everything