by py3kthrowa · 11y ago · 0 comments
>>> b"%u" % 5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'bytes' and 'int'json.loads(foo) blahblahException foo is bytes not text.
That said I still endorse py3 for new things
If I remember right, % used to be deprecated in Python 3, but was undeprecated again by popular demand.