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

Martijn pypy-dev-issue at codespeak.net
Mon Feb 28 23:51:39 CET 2011

New submission from Martijn <ss at kleptog.org>:

PyUnicode_AsEncodedObject is almost identical to PyUnicode_AsEncodedString
except that the former does not check if the result is a string or not. It is
presently undocumented (but see http://bugs.python.org/issue10435) however for
the code it is clear the only difference is that AsEncodedObject does not check
the result is a string. Hence this patch renames AsEncodedString to
AsEncodedObject and creates a new AsEncodedString which calls the other and adds
a check.

effort: ???
files: PyUnicode_AsEncodedObject.patch
messages: 2204
nosy: kleptog, pypy-issue
priority: feature
release: ???
status: unread
title: [PATCH] Support for PyUnicode_AsEncodedObject

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

More information about the Pypy-issue mailing list