Transforming Code into Beautiful, Idiomatic Python

Raymond Hettinger. Learn to take better advantage of Python's best features and improve existing code through a series of code transformations, "When you see this, do that instead.".