[Chicago] constant length string manipulation

Lukasz Szybalski szybalski at gmail.com
Fri Nov 30 16:25:22 CET 2007


On Nov 29, 2007 3:29 PM, Cosmin Stejerean <cstejerean at gmail.com> wrote:
> b.ljust(5)[:5]

a='1234567890' or a='123'
b=a.ljust(5)[:5]

so I guess ljust will do.
Thanks.
Lucas


More information about the Chicago mailing list