]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Implementation of PEP 3101, Advanced String Formatting.
authorEric Smith <eric@trueblade.com>
Sat, 25 Aug 2007 02:26:07 +0000 (02:26 +0000)
committerEric Smith <eric@trueblade.com>
Sat, 25 Aug 2007 02:26:07 +0000 (02:26 +0000)
commit8c6632636807c35bee40210ed8483c1eca82664f
tree50f386d98ce14116eaf9d83085b82ff11bdb3e69
parente4dc32488446240942123cf4e9e7296ad97e20bf
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.
22 files changed:
Include/formatter_unicode.h [new file with mode: 0644]
Include/unicodeobject.h
Lib/string.py
Lib/test/test_builtin.py
Lib/test/test_descrtut.py
Lib/test/test_float.py
Lib/test/test_long.py
Lib/test/test_string.py
Lib/test/test_unicode.py
Makefile.pre.in
Objects/floatobject.c
Objects/longobject.c
Objects/stringlib/formatter.h [new file with mode: 0644]
Objects/stringlib/string_format.h [new file with mode: 0644]
Objects/stringlib/stringdefs.h [new file with mode: 0644]
Objects/stringlib/unicodedefs.h [new file with mode: 0644]
Objects/typeobject.c
Objects/unicodeobject.c
Python/Python-ast.c
Python/bltinmodule.c
Python/formatter_unicode.c [new file with mode: 0644]
Python/sysmodule.c