]> granicus.if.org Git - python/commit
Add 'U'/'U#' format characters to Py_BuildValue (and thus
authorWalter Dörwald <walter@livinglogic.de>
Fri, 18 May 2007 16:29:38 +0000 (16:29 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 18 May 2007 16:29:38 +0000 (16:29 +0000)
commitd2034310d66b9d387b252972852537c0b592f141
tree77d03818fd4896b2dc1ea3eb87202bf1d82d8866
parent5550731d9cf5bca2379b15d5238ee5a39ebc6ce3
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.
Doc/api/utilities.tex
Include/unicodeobject.h
Lib/test/test_codeccallbacks.py
Objects/exceptions.c
Objects/unicodeobject.c
Python/modsupport.c