cpython/Modules
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
..
_ctypes Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
_sqlite Use AsCharBuffer to get C strings out of Python strings. 2007-05-09 23:37:01 +00:00
cjkcodecs Make all the multibyte codec tests pass. 2007-05-17 23:59:11 +00:00
expat Merge current trunk into p3yk. This includes the PyNumber_Index API change, 2006-08-21 19:07:27 +00:00
zlib Remove unneeded directories. 2006-01-03 06:48:38 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist Merged revisions 55342-55406 via svnmerge from 2007-05-17 18:20:34 +00:00
_bisectmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
_bsddb.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
_codecsmodule.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
_collectionsmodule.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
_csv.c Fix some miscellaneous places that incorrectly insisted on str8. 2007-05-10 18:04:33 +00:00
_curses_panel.c Coverity-found bug: don't use temp->next *before* checking it for NULL. Also 2006-03-07 13:38:14 +00:00
_cursesmodule.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
_elementtree.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
_fileio.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
_functoolsmodule.c Part of SF patch #1513870 (the still relevant part) -- add reduce() to 2006-08-26 20:49:04 +00:00
_hashopenssl.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
_heapqmodule.c Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over 2006-02-16 19:21:53 +00:00
_hotshot.c Merge current trunk into p3yk. This includes the PyNumber_Index API change, 2006-08-21 19:07:27 +00:00
_localemodule.c Merged revisions 55342-55406 via svnmerge from 2007-05-17 18:20:34 +00:00
_lsprof.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
_randommodule.c Merged revisions 53451-53537 via svnmerge from 2007-02-01 18:02:27 +00:00
_sre.c Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 2007-05-03 17:49:24 +00:00
_ssl.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
_struct.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
_testcapimodule.c Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 2007-05-03 17:49:24 +00:00
_tkinter.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
_typesmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
_weakref.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
addrinfo.h Cruft removal: 2006-12-28 04:47:50 +00:00
ar_beos Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos and 2001-02-16 03:24:50 +00:00
arraymodule.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
atexitmodule.c Address some XXXs from Neal Norwitz. 2007-03-23 22:46:49 +00:00
audioop.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
binascii.c Forwardport checkin: 2007-05-09 18:23:50 +00:00
bz2module.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
cPickle.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
cStringIO.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
config.c.in Somehow this contained a bogus reference to "exceptions" which caused 2007-04-07 03:14:46 +00:00
cryptmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
cstubs Remove PyArg_NoArgs() and PyArg_GetInt() 2006-03-17 09:00:00 +00:00
datetimemodule.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
dbmmodule.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
dlmodule.c Merged the int/long unification branch, by very crude means (sorry Thomas!). 2007-01-14 03:31:43 +00:00
errnomodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fcntlmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
fpectlmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
gdbmmodule.c And the gdbm module's test now passes again. 2006-08-19 23:18:48 +00:00
getaddrinfo.c SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners. 2007-02-27 19:06:23 +00:00
getbuildinfo.c Merged revisions 55325-55327 via svnmerge from 2007-05-14 22:51:27 +00:00
getnameinfo.c SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners. 2007-02-27 19:06:23 +00:00
getpath.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
grpmodule.c Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
imageop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
itertoolsmodule.c Add a format specifier %R to PyUnicode_FromFormat(), which embeds 2007-05-19 21:49:49 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
linuxaudiodev.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
main.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
makesetup [Patch #536769] Add -Xcompiler flag for adding arguments and switches for 2002-03-29 18:00:19 +00:00
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
md5.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
md5.h Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
md5module.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
mmapmodule.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
nismodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
operator.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
ossaudiodev.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
parsermodule.c Merged revisions 55328-55341 via svnmerge from 2007-05-15 18:46:22 +00:00
posixmodule.c Merged revisions 55325-55327 via svnmerge from 2007-05-14 22:51:27 +00:00
pwdmodule.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
pyexpat.c Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 2007-05-03 17:49:24 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
resource.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
rgbimgmodule.c Merge current trunk into p3yk. This includes the PyNumber_Index API change, 2006-08-21 19:07:27 +00:00
rotatingtree.c randombits(): Stop compiler warning about mixing 2006-02-15 03:01:30 +00:00
rotatingtree.h Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
selectmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
sha256module.c Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn 2006-06-08 14:42:34 +00:00
sha512module.c Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn 2006-06-08 14:42:34 +00:00
shamodule.c Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn 2006-06-08 14:42:34 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c Make test_socket pass. There was an unchecked error when a Unicode 2007-05-18 18:55:53 +00:00
socketmodule.h Merged revisions 53623-53858 via svnmerge from 2007-02-23 15:07:44 +00:00
spwdmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
sre.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
sunaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
symtablemodule.c Hide list comp variables and support set comprehensions 2007-04-15 12:05:43 +00:00
syslogmodule.c Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn 2006-06-08 14:42:34 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h Fix error in comment, and in test_long_api and test_longlong_api remove 2001-06-16 08:10:13 +00:00
threadmodule.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
timemodule.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
unicodedata_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
unicodename_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
xxmodule.c Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
xxsubtype.c Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
yuv.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
yuvconvert.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
zipimport.c Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 2007-05-18 17:15:44 +00:00
zlibmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00