cpython/Lib
Eric Smith 8c66326368 Implementation of PEP 3101, Advanced String Formatting.
Known issues:

The string.Formatter class, as discussed in the PEP, is incomplete.

Error handling needs to conform to the PEP.

Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used

Need to make sure sign formatting is correct, more tests needed.

Need to remove '()' sign formatting, left over from an earlier version of the PEP.
2007-08-25 02:26:07 +00:00
..
bsddb reapply of r57378 to fix bug 1725856 2007-08-24 05:32:10 +00:00
ctypes Remove spurious (and unneeded) import of StringIO. 2007-08-10 01:01:28 +00:00
curses
distutils Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
email SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
encodings Fix stupid typo in Lib/encodings/utf_32.py which led to failing tests 2007-08-17 16:23:21 +00:00
hotshot Fix raise statements in hotshot. 2007-08-22 21:45:02 +00:00
idlelib os.getcwd() is returning str8; sys.path items are str. 2007-08-23 06:17:40 +00:00
lib-tk Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
logging Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
msilib Change a bunch of file encodings from Latin-1 to UTF-8. 2007-07-16 23:10:57 +00:00
plat-aix4
plat-atheos Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-generic
plat-linux2
plat-mac Convert raise statements in Lib/plat-{mac,os2emx}. 2007-08-23 00:01:55 +00:00
plat-netbsd1
plat-next3
plat-os2emx Convert raise statements in Lib/plat-{mac,os2emx}. 2007-08-23 00:01:55 +00:00
plat-sunos5 Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
plat-unixware7 Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
site-packages
sqlite3 Make the sqlite tests pass. 2007-08-10 18:15:11 +00:00
test Implementation of PEP 3101, Advanced String Formatting. 2007-08-25 02:26:07 +00:00
wsgiref Switch wsgiref to io.{StringIO,BytesIO}. This shuts up the test failures. 2007-08-08 17:01:45 +00:00
xml r698@Silves: collinwinter | 2007-08-24 10:57:15 -0700 2007-08-24 18:57:22 +00:00
BaseHTTPServer.py Fixes by John Reese and Jacques Frechet that make test_xmlrpc pass. 2007-08-22 23:45:42 +00:00
CGIHTTPServer.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
ConfigParser.py
Cookie.py Fix test_cookie.py. 2007-07-20 00:30:38 +00:00
DocXMLRPCServer.py
HTMLParser.py
Queue.py
SimpleHTTPServer.py
SimpleXMLRPCServer.py Merged revisions 57152-57220 via svnmerge from 2007-08-20 19:06:03 +00:00
SocketServer.py SF patch# 1764815 by Paul Colomiets. 2007-08-03 19:03:39 +00:00
UserDict.py
UserList.py
UserString.py
_LWPCookieJar.py
_MozillaCookieJar.py
__future__.py
__phello__.foo.py
_abcoll.py Merged revisions 55962-56019 via svnmerge from 2007-06-18 17:58:50 +00:00
_strptime.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
_threading_local.py
abc.py Rename __whatever variables defined by ABCMeta to _abc_whatever, so as 2007-08-20 19:29:24 +00:00
aifc.py
anydbm.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
asynchat.py Merged revisions 56753-56781 via svnmerge from 2007-08-06 23:33:07 +00:00
asyncore.py Fix test_asyncore after merge. It needs to use bytes. 2007-07-18 20:57:44 +00:00
base64.py
bdb.py
binhex.py
bisect.py
build_class.py
cProfile.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
calendar.py
cgi.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
cgitb.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
chunk.py
cmd.py Fix pdb help command. 2007-06-07 22:37:45 +00:00
code.py Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
codecs.py
codeop.py
collections.py Getting rid of cPickle. Mmm, feels good! 2007-07-20 00:22:32 +00:00
colorsys.py
commands.py
compileall.py Improve error handling; don't die from unicode errors or syntax errors. 2007-07-15 13:01:48 +00:00
contextlib.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
cookielib.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
copy.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
copy_reg.py Getting rid of cPickle. Mmm, feels good! 2007-07-20 00:22:32 +00:00
csv.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
dbhash.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
decimal.py First merge from the trunk straight into the py3k branch. I'm not 2007-08-16 23:48:43 +00:00
difflib.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
dircache.py
dis.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
doctest.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
dumbdbm.py Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings. 2007-08-23 22:06:07 +00:00
dummy_thread.py
dummy_threading.py
filecmp.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
fileinput.py Remove RISCOS support 2007-08-16 14:35:24 +00:00
fnmatch.py
formatter.py
fpformat.py
ftplib.py Minimal changes to make ftplib work. Basically, this opens the stream in 2007-07-17 20:45:57 +00:00
functools.py
genericpath.py
getopt.py Change a bunch of file encodings from Latin-1 to UTF-8. 2007-07-16 23:10:57 +00:00
getpass.py
gettext.py Fixes for str/uni/bytes for gettext.py. test_gettext.py passes. 2007-07-12 08:04:06 +00:00
glob.py
gzip.py Retouch my last change after a comment on style from Guido. 2007-08-13 09:05:16 +00:00
hashlib.py
heapq.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
hmac.py Make hmac use bytes. Make test_hmac pass. 2007-07-10 13:35:52 +00:00
htmlentitydefs.py
htmllib.py
httplib.py Remove Python 1.5 compatibility layer from httplib. 2007-08-14 17:08:07 +00:00
ihooks.py
imaplib.py
imghdr.py Improved patches for sndhdr and imghdr by Victor Stinner, who writes: 2007-08-13 17:50:00 +00:00
imputil.py Use the str builtin 2007-08-24 23:17:28 +00:00
inspect.py Merged revisions 56301-56442 via svnmerge from 2007-07-18 18:15:48 +00:00
io.py Make IOBase (and hence all other classes in io.py) use ABCMeta as its metaclass, 2007-08-22 18:14:10 +00:00
keyword.py Merged revisions 56020-56124 via svnmerge from 2007-06-30 05:01:58 +00:00
linecache.py Be even more lenient when catching errors from readlines(). 2007-07-10 11:34:31 +00:00
locale.py
macpath.py
macurl2path.py
mailbox.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
mailcap.py
markupbase.py
mhlib.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
mimetools.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
mimetypes.py
modulefinder.py Some quick fixes of code that was sorting dict.keys() etc. 2007-06-12 00:25:08 +00:00
multifile.py
mutex.py
netrc.py
new.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
nntplib.py
ntpath.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
nturl2path.py
opcode.py
optparse.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
os.py some RiscOS stuff I missed before (was only looking for "RISCOS") 2007-08-17 02:30:27 +00:00
os2emxpath.py
pdb.doc
pdb.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
pickle.py Getting rid of cPickle. Mmm, feels good! 2007-07-20 00:22:32 +00:00
pickletools.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
pipes.py
pkgutil.py Remove RISCOS support 2007-08-16 14:35:24 +00:00
platform.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
poplib.py Fix test_poplib failures. 2007-07-23 00:24:10 +00:00
posixpath.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
pprint.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
profile.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
pstats.py
pty.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
py_compile.py A small tweak to avoid calling traceback.format_exception_only() with 2007-08-10 17:36:34 +00:00
pyclbr.py
pydoc.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
quopri.py Fix quopri to operate consistently on bytes. 2007-07-28 17:52:25 +00:00
random.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
re.py
repr.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
rfc822.py
rlcompleter.py
robotparser.py
runpy.py Merged revisions 56753-56781 via svnmerge from 2007-08-06 23:33:07 +00:00
sched.py
sgmllib.py Merged revisions 56782-56847 via svnmerge from 2007-08-09 14:26:58 +00:00
shelve.py Change shelve to require a bytes-oriented dict as 2007-08-11 06:57:14 +00:00
shlex.py
shutil.py
site.py some RiscOS stuff I missed before (was only looking for "RISCOS") 2007-08-17 02:30:27 +00:00
smtpd.py Merged revisions 56753-56781 via svnmerge from 2007-08-06 23:33:07 +00:00
smtplib.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
sndhdr.py Improved patches for sndhdr and imghdr by Victor Stinner, who writes: 2007-08-13 17:50:00 +00:00
socket.py Make sure socket.close() doesn't interfere with socket.makefile(). 2007-08-03 20:40:09 +00:00
sre.py
sre_compile.py Merged revisions 56154-56264 via svnmerge from 2007-07-11 13:09:30 +00:00
sre_constants.py
sre_parse.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
stat.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
statvfs.py
string.py Implementation of PEP 3101, Advanced String Formatting. 2007-08-25 02:26:07 +00:00
stringprep.py
struct.py
subprocess.py The bufsize argument to Popen() should accept None meaning the default (0). 2007-06-07 21:56:45 +00:00
sunau.py
sunaudio.py Convert sunaudio.py to bytes. (It has no unit test of its own!) 2007-08-21 22:49:52 +00:00
symbol.py
symtable.py
tabnanny.py
tarfile.py Fall back to 'ascii' encoding if sys.getfilesystemencoding() returns 2007-08-21 12:17:05 +00:00
telnetlib.py
tempfile.py some RiscOS stuff I missed before (was only looking for "RISCOS") 2007-08-17 02:30:27 +00:00
textwrap.py Quick fix for a new problem here -- using string.lowercase somehow caused 2007-08-11 16:40:13 +00:00
this.py
threading.py Get rid of all __private variables and methods in the threading module. 2007-08-20 19:25:41 +00:00
timeit.py
token.py
tokenize.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
trace.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
traceback.py Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
tty.py
types.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
unittest.py Add the function/method name to assertRaises. 2007-07-10 09:10:40 +00:00
urllib.py some RiscOS stuff I missed before (was only looking for "RISCOS") 2007-08-17 02:30:27 +00:00
urllib2.py Fix several failing tests in test_urllib2net. 2007-08-08 17:36:33 +00:00
urlparse.py
user.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
uu.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
uuid.py Make uuid.py thread-safe. Fix by Yuri Ginsburg. 2007-08-24 04:13:42 +00:00
warnings.py Merged revisions 55795-55816 via svnmerge from 2007-06-07 23:15:56 +00:00
wave.py Make test_wave.py pass. 2007-07-23 21:28:30 +00:00
weakref.py Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
webbrowser.py Merged revisions 56154-56264 via svnmerge from 2007-07-11 13:09:30 +00:00
whichdb.py Remove RISCOS support 2007-08-16 14:35:24 +00:00
wsgiref.egg-info
xdrlib.py Move xdrlib over to the bytes type. 2007-07-26 03:19:46 +00:00
xmlrpclib.py Fixes by John Reese and Jacques Frechet that make test_xmlrpc pass. 2007-08-22 23:45:42 +00:00
zipfile.py Fix test_zipfile.py. (Why was it passing before?) 2007-07-18 22:07:29 +00:00