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 serhiy.storchaka
Recipients Arfrever, eric.smith, ethan.furman, martin.panter, nascheme, ncoghlan, python-dev, serhiy.storchaka, vstinner
Date 2015-02-03.08:42:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422952973.11.0.84169569208.issue23383@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes following changes to bytes formatting code:

1) Fixes a bug when PyUnicode_AsEncodedObject() returns non-bytes byte-like object.

2) Avoid few non-neccessary memory allocations and copyings (converting bytearray or ASCII string to bytes).

3) Clean up the code.
History
Date User Action Args
2015-02-03 08:42:53serhiy.storchakasetrecipients: + serhiy.storchaka, nascheme, ncoghlan, vstinner, eric.smith, Arfrever, ethan.furman, python-dev, martin.panter
2015-02-03 08:42:53serhiy.storchakasetmessageid: <1422952973.11.0.84169569208.issue23383@psf.upfronthosting.co.za>
2015-02-03 08:42:52serhiy.storchakalinkissue23383 messages
2015-02-03 08:42:52serhiy.storchakacreate