While converting a bunch of werkzeug code to Python 3.1, I ran into an issue with one of the bytes objects that was previously a string. The line of code in question was originally this: if value and value[0] == value[-1] == b’"’: … If value is something, and the first and last characters are [...]
Archive for December 31st, 2009
Python 3 bytes indexing returns integers!
Posted in Engineering, Technique, tagged bytes, Python, python 3 on December 31, 2009 | Leave a Comment »