[PyPy-issue] [issue651] [PATCH] Support for PyUnicode_AsEncodedObject

Martijn pypy-dev-issue at codespeak.net
Sun Mar 6 18:09:01 CET 2011


Martijn <ss at kleptog.org> added the comment:

Here is an update patch with a test. In principle the code was tested given that
all the existing code went through the new function.

What isn't possible to test is the failure case given there is no built-in codec
that returns anything other than a string. It would be in principle possible to
register a test codec but that seemed a lot of work for a test.  However, if
there's an easy way to do that, then the test is easily done.

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue651>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyUnicode_AsEncodedObject.patch
Type: text/x-diff
Size: 3090 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20110306/ca9f46e4/attachment.patch>


More information about the Pypy-issue mailing list