making a string a given length?

Moshe Zadka moshez at math.huji.ac.il
Sat May 27 17:16:52 EDT 2000


On Sat, 27 May 2000, Moshe Zadka wrote:

> On Sat, 27 May 2000, Z 3 Penguin wrote:
> 
> > For a python program to interface with gnutella, i need to make a string
> > (like +ACI-abc+ACI-) a given number of bytes long.  is there anyway to do this
> > without having to write my own function?
> 
> string.fill?

Meant string.ljust
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list