]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Changed some ValueError's to KeyError and IndexError.
authorEric Smith <eric@trueblade.com>
Tue, 4 Sep 2007 23:04:22 +0000 (23:04 +0000)
committerEric Smith <eric@trueblade.com>
Tue, 4 Sep 2007 23:04:22 +0000 (23:04 +0000)
commit11529195cae2438a3ac003babcb1b11af67c4037
tree2bf0ac780377e409f87ad51aca8d8bc7c882f015
parent0af17617c51d6cae4c0b7ff225751e07183b96f2
Changed some ValueError's to KeyError and IndexError.
Corrected code for invalid conversion specifier.
Added tests to verify.

Modified string.Formatter to correctly expand format_spec's,
and added a limit to recursion depth.  Added _vformat()
method to support both of these.
Lib/string.py
Lib/test/test_unicode.py
Objects/stringlib/string_format.h