making a string a given length?

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


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?





More information about the Python-list mailing list