diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-18 16:29:38 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-18 16:29:38 +0000 |
commit | a7acfede52819c181527f83d4e05647656c94956 (patch) | |
tree | bf2757e3d50d5c0a7cbccdb5aa4b16db8454037f /Python/errors.c | |
parent | 722ca0381ce83d117e3f91df0a3e87fc6a78dcc7 (diff) | |
download | cpython-a7acfede52819c181527f83d4e05647656c94956.tar.gz |
Add 'U'/'U#' format characters to Py_BuildValue (and thus
to PyObject_CallFunction()) that take a char * (and a size
in the case of 'U#') and create a unicode object out of it.
Add functions PyUnicode_FromFormat() and PyUnicode_FromFormatV()
that work similar to PyString_FromFormat(), but create a unicode
object (also a %U format character has been added, that takes
a PyObject *, which must point to a unicode object).
Change the encoding and reason attributes of UnicodeEncodeError,
UnicodeDecodeError and UnicodeTranslateError to be unicode
objects.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions