]> granicus.if.org Git - python/commit
Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror
authorWalter Dörwald <walter@livinglogic.de>
Fri, 18 May 2007 17:15:44 +0000 (17:15 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 18 May 2007 17:15:44 +0000 (17:15 +0000)
commit1ab833082738ced53318aca05901e596d5ede683
tree0ff2b4c1fcbab3233e012f04bce801cadfd6d7f9
parent14176a56d3fe36388115688d0b5acae0c759c044
Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror
PyString_Concat() and PyString_ConcatAndDel() (the name PyUnicode_Concat()
was already taken).

Change PyObject_Repr() to always return a unicode object.

Update all repr implementations to return unicode objects.

Add a function PyObject_ReprStr8() that calls PyObject_Repr() and converts
the result to an 8bit string.

Use PyObject_ReprStr8() where using PyObject_Repr() can't be done
straightforward.
49 files changed:
Include/object.h
Include/unicodeobject.h
Mac/Modules/cf/_CFmodule.c
Mac/Modules/file/_Filemodule.c
Mac/Modules/win/_Winmodule.c
Modules/_codecsmodule.c
Modules/_collectionsmodule.c
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callproc.c
Modules/_ctypes/cfield.c
Modules/_elementtree.c
Modules/_fileio.c
Modules/_hashopenssl.c
Modules/_tkinter.c
Modules/arraymodule.c
Modules/cPickle.c
Modules/datetimemodule.c
Modules/itertoolsmodule.c
Modules/socketmodule.c
Modules/zipimport.c
Objects/boolobject.c
Objects/bufferobject.c
Objects/bytesobject.c
Objects/cellobject.c
Objects/classobject.c
Objects/codeobject.c
Objects/complexobject.c
Objects/descrobject.c
Objects/dictobject.c
Objects/exceptions.c
Objects/fileobject.c
Objects/floatobject.c
Objects/funcobject.c
Objects/intobject.c
Objects/listobject.c
Objects/longobject.c
Objects/methodobject.c
Objects/moduleobject.c
Objects/object.c
Objects/rangeobject.c
Objects/setobject.c
Objects/sliceobject.c
Objects/stringobject.c
Objects/tupleobject.c
Objects/typeobject.c
Objects/unicodeobject.c
Objects/weakrefobject.c
Python/errors.c
Python/symtable.c