functools.partial

functools.partial is one of those things that you don't need until you need it, and then you need it badly. Trying┬áto create a series of lambda functions I discovered that the simplest answer that came to my mind did something counter intuitive, and functools.partial - which I had ignored so far, came to my rescue. …

Advertisements