[Patches] [ python-Patches-536241 ] string.zfill and unicode
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 29 Mar 2002 08:12:42 -0800
Patches item #536241, was opened at 2002-03-28 08:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=536241&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
>Assigned to: A.M. Kuchling (akuchling)
Summary: string.zfill and unicode
Initial Comment:
This patch makes the function string.zfill work with
unicode instances (and instances of str and unicode
subclasses). Currently string.zfill(u"123", 10)
results in "0000u'123'". With this patch the result is
u'0000000123'.
Should zfill be made a real str und unicode method? I
noticed that a zfill implementation is available in
unicodeobject.c, but commented out.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=536241&group_id=5470