Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

bernardy's latest activity

Saturday, March 08 2014
197 Python 3, cursor.query returns bytes instead of str was updated in psycopg
  • bernardy
    bernardy commented at 3:00 AM

    Also 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
    bernardy edited a comment at 3:00 AM

    Also 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
    bernardy commented at 2:00 AM

    Although, 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
    bernardy created the ticket at 1:40 AM

    In 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...