December 2011
2 posts
Silly Python riddle
Here’s a silly Python riddle for you.
Today I opened up a Python 2.7 shell, and ran two commands in it.
>>> f = lambda: g(???)
>>> f()
(Note that these are the only commands that I ran. You’re not allowed to run any other commands before them.)
The riddle: What’s the shortest thing you can put instead of ??? so my second command would not raise an...
The `coverage` module celebrates 10 years today!
Today, December 4th 2011, marks the tenth birthday of the excellent coverage module! Here is the changelog entry showing it was created exactly ten years ago, on December 4th, 2001 by Gareth Rees.
The coverage module is one of the most sturdy and reliable pillars of my development toolset. It’s a hallmark of a great tool that you never have to spend too much with it— When I want to...