]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix SF # 635969, No error "not all arguments converted"
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 12 Nov 2002 23:01:12 +0000 (23:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 12 Nov 2002 23:01:12 +0000 (23:01 +0000)
commit80a1bf4b5db4880f01d30b89ab5f6c436d50c8e6
treeb8d9f619c12790ad63bf1f044b7e08fd4aa29bf8
parent0b9e3f750cc91e83d9614dd941545a8b29fa248a
Fix SF # 635969, No error "not all arguments converted"

When mwh added extended slicing, strings and unicode became mappings.
Thus, dict was set which prevented an error when doing:
newstr = 'format without a percent' % string_value

This fix raises an exception again when there are no formats
and % with a string value.
Lib/test/test_format.py
Objects/stringobject.c
Objects/unicodeobject.c