[Patch] {l,r}just with optional pad character parameter

beat.bolli at dware.ch.bbs beat.bolli at dware.ch.bbs
Tue Jul 18 02:40:04 EDT 2000


> > Two reasons why not:
> > - it would have been harder to implement <wink>
> > - undetermined semantics:
> >   "GvR".ljust(6,"12") =?= "GvR121"
>
> This is exactly what I would expect -- a 6 char result string
>

I've been working on this last night; I implemented it for ljust, rjust and
center.
Right now I'm trying to integrate Unicode support, too. Let me know if you
want to see an intermediate version just for strings.

Beat Bolli
--
dware design & software GmbH
Mattenstrasse 11, CH-2555 Brügg b. Biel
Telefon: +41 (32) 374 27 00, Telefax: +41 (32) 374 27 01
E-Mail: beat.bolli at dware.ch



More information about the Python-list mailing list