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 r.david.murray
Recipients ezio.melotti, methane, r.david.murray, vstinner
Date 2015-08-15.12:09:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Why are bytes being escaped in a binary blob? The reason to use surrogateescape is when you have data that is mostly text, should be processed as text, but can have occasional binary data.  That wouldn't seem to apply to a database binary blob.

But that aside, if you want to submit a patch to speed up surrogateescape without changing its functionality, I'm sure it would be considered.  It would certainly be useful for the email library, which currently does do the stupid thing of encoding binary message attachments using surrogateescape (and I'm guessing the reason pymysql does it is something similar to why email does it: the code would need to be significantly reorganized to do things right).
Date User Action Args
2015-08-15 12:09:23r.david.murraysetrecipients: + r.david.murray, vstinner, ezio.melotti, methane
2015-08-15 12:09:23r.david.murraysetmessageid: <>
2015-08-15 12:09:23r.david.murraylinkissue24870 messages
2015-08-15 12:09:23r.david.murraycreate