The only problem with Python 3's str is that you don't grok it

1 · Drew DeVault · Jan. 13, 2017, midnight
I’ve found myself explaining Python 3’s str to people online more and more often lately. There’s this ridiculous claim about that Python 3’s string handling is broken or somehow worse than Python 2, and today I intend to put that myth to rest. Python 2 strings are broken, and Python 3 strings are sane. The only problem is that you don’t grok strings. The basic problem many people seem to have with Python 3’s strings arises when they write code that treats bytes like a string, because that’s how ...