summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-04-15 13:36:47 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-04-15 13:36:47 (GMT)
commit068325ef926538a30d7feb13f9b14a6163e24b6e (patch)
treec2eef78d030be1ce7a56b56420ba13a853aab57d /Misc
parentb384c7263928cc2d8dd16cac8537839673cd4982 (diff)
downloadcpython-068325ef926538a30d7feb13f9b14a6163e24b6e.zip
cpython-068325ef926538a30d7feb13f9b14a6163e24b6e.tar.gz
cpython-068325ef926538a30d7feb13f9b14a6163e24b6e.tar.bz2
Apply the second version of SF patch http://www.python.org/sf/536241
Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly. This activates the zfill version in unicodeobject.c that was commented out and implements the same in stringobject.c. It also adds the test for unicode support in Lib/string.py back in and uses repr() instead() of str() (as it was before Lib/string.py 1.62)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 400b631..a1f5f54 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,10 @@ Type/class unification and new-style classes
Core and builtins
+- A method zfill() was added to str and unicode, that fills a numeric
+ string to the left with zeros. For example,
+ "+123".zfill(6) -> "+00123".
+
- Complex numbers supported divmod() and the // and % operators, but
these make no sense. Since this was documented, they're being
deprecated now.