cpython/Objects
Walter Dörwald 7569dfe11d Add a format specifier %R to PyUnicode_FromFormat(), which embeds
the result of a call to PyObject_Repr() into the string. This makes
it possible to simplify many repr implementations.

PyUnicode_FromFormat() uses two steps to create the final string: A first
pass through the format string determines the size of the final string and
a second pass creates the string. To avoid calling PyObject_Repr() twice
for each %R specifier, PyObject_Repr() is called during the size
calculation step and the results are stored in an array (whose size is
determined at the start by counting %R specifiers).
2007-05-19 21:49:49 +00:00
..
stringlib Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
abstract.c Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 2007-05-03 17:49:24 +00:00
boolobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
bufferobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
bytesobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
cellobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
classobject.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
cobject.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
codeobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
complexobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
descrobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
dictnotes.txt Merged revisions 53623-53858 via svnmerge from 2007-02-23 15:07:44 +00:00
dictobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
enumobject.c Merged revisions 53623-53858 via svnmerge from 2007-02-23 15:07:44 +00:00
exceptions.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
fileobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
floatobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
frameobject.c Merged revisions 55270-55324 via svnmerge from 2007-05-14 22:03:55 +00:00
funcobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
genobject.c Quite a few fixes to make the library and test suite more robust when 2006-08-17 20:24:18 +00:00
intobject.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
iterobject.c Remove bogus INCREF of ziptuple: it is a 2007-02-06 21:30:59 +00:00
listobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
listsort.txt Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
longobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
methodobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
moduleobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
object.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
obmalloc.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
rangeobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
setobject.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
sliceobject.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
stringobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
structseq.c Merge current trunk into p3yk. This includes the PyNumber_Index API change, 2006-08-21 19:07:27 +00:00
tupleobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
typeobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
unicodectype.c Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
unicodeobject.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00