This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients ezio.melotti, methane, python-dev, r.david.murray, serhiy.storchaka, vstinner
Date 2015-10-10.19:15:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
UTF-8 and Latin1 are typical encoding for MySQL query.
When inserting BLOB:

# Decode binary data
x = data.decode('ascii', 'surrogateescape')
# %-format query
psql = sql % (escape(x),)  # sql is unicode
# Encode sql to connection encoding (latin1 or utf8)
query_bytes = psql.encode('utf-8', 'surrogateescape')

So decoder speedup is required only for ascii, but encoder speedup is required for utf-8 and latin1.

I'll consider other ways including creating speedup module and register it on PyPI.
Date User Action Args
2015-10-10 19:15:54methanesetrecipients: + methane, vstinner, ezio.melotti, r.david.murray, python-dev, serhiy.storchaka
2015-10-10 19:15:54methanesetmessageid: <>
2015-10-10 19:15:53methanelinkissue24870 messages
2015-10-10 19:15:53methanecreate