bernardy
Not a member
bernardy's latest activity
Saturday, March 08 2014
197
Python 3, cursor.query returns bytes instead of str
was updated
in psycopg
-
bernardy commented at 3:00 AMAlso just noticed that cursor.mogrify() returns bytes in Python 3. Which is okay because cursor.execute() will happily take either (utf-8 or current client enco...
-
bernardy edited a comment at 3:00 AMAlso just noticed that cursor.mogrify() returns bytes in Python 3. Which is okay because cursor.execute() will happily take either (utf-8 or current client enco...
-
bernardy commented at 2:00 AMAlthough, thinking about it, fixing this bug could break a lot of extent user code, since the typical way to handle it would be:
cursor.query.decode('utf-8')...
-
bernardy created the ticket at 1:40 AMIn python 3.3.4, cursor.query returns a bytes sequence, not a string.
Interestingly, cursor.statusmessage returns a string.If this is intentional behavior on P...