I got trapped by a lambda function in Python

I consider myself a medium-to-experienced Python programmer (I am using python for 6 years). Today I’ve lost almos one hour in a very stupid bug with lambda functions. See what happend: Read more

Similar

Unravelling Attribute Access in Python

I wonder how many people realize that Python is has a lot of syntactic sugar? I'm not claiming it's like a Lisp-based language where the syntax is as bare bones as possible (although the Lisp comparison is not entirely unfounded), but much of Python's syn... (more…)

Read more »