Hi, I'm Daniel Greenfeld, and welcome to my blog. I write about Python, Django, and much more.

Fixing Python's String class

Monday, April 01, 2013 (permalink)

Ever wonder why Python's str or unicode types lack obvious length methods? Yes, we can get the length via the special __len__() method, but instead as Python developers we get the so-called 'luxury' of discovering length via the Python's built-in len() function. So instead of calling the length ...

Read more ...