From: Peter Szinek Date: 2006-05-29T19:17:53+09:00 Subject: Re: Equivalent of Python zfill? Robert, >>> "0" * 7 > => "0000000" Thanks, i am using this at the moment, just wanted to know if there is something faster - in Python zfill is faster than "0" * 7. I am just asking because i am using this a *lot* of times, so if there is an at least slightly faster alternative ,i should probably consider it. But if "0"*7 is the 'normal' way of doing this, it's OK with me. Cheers, Peter