Recent Posts

Length hints in Python

tim August 4, 2018 No Comments Internals

I was grubbing about trying to understand some library code the other day (I forget which one) and I came across a double-underscore method I’d never seen before: def __length_hint__(self): return … # Some internals here. Since this is a double-underscore method, it can’t be (or shouldn’t be) something the library invented. It must have […]

How does q work?

tim May 25, 2018 No Comments Libraries

In a previous post I talked about what you can do with the debug logging library q. It has some interesting features that don’t look like standard Python, though of course it all is. Debug anywhere Start with the simple things. One of the nice things about q is that you can stick a debug […]

Page 2 of 5