]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport the following changes:
authorWalter Dörwald <walter@livinglogic.de>
Mon, 22 Apr 2002 11:57:06 +0000 (11:57 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 22 Apr 2002 11:57:06 +0000 (11:57 +0000)
commit1c097b7102c6c5a1a03cbb5d36c819eedae60d5a
tree2febf496a5b53d3567abf4484431117a502dfd4c
parentc3d8fa590083c23a77eca975d580e7b84fc5ff61
Backport the following changes:

Misc/NEWS 1.387->1.388
Lib/test/string_tests.py 1.10->1.11, 1.12->1.14,
Lib/test/test_unicode.py 1.50->1.51, 1.53->1.54, 1.55->1.56
Lib/test/test_string.py 1.15->1.16
Lib/string.py 1.61->1.63
Lib/test/test_userstring.py 1.5->1.6, 1.11, 1.12
Objects/stringobject.c 2.156->2.159
Objects/unicodeobject.c 2.137->2.139
Doc/lib/libstdtypes.tec 1.87->1.88

Add a method zfill to str, unicode and UserString
and change Lib/string.py accordingly
(see SF patch http://www.python.org/sf/536241)

This also adds Guido's fix to test_userstring.py
and the subinstance checks in test_string.py
and test_unicode.py.
Doc/lib/libstdtypes.tex
Lib/UserString.py
Lib/string.py
Lib/test/string_tests.py
Lib/test/test_string.py
Lib/test/test_unicode.py
Lib/test/test_userstring.py
Misc/NEWS
Objects/stringobject.c
Objects/unicodeobject.c