fast way of turning a list of integers<256 into a string

Michael Hudson mwh at python.net
Wed Jan 15 14:08:05 EST 2003


jbperez808 at yahoo.com (Jonathan P.) writes:

> Is there a function to do the ff. instead:
> 
> x=range(1,255)
> list2str(x)
> 
> and have x become a string?

Bizarrely enough:

    http://www.python.org/doc/essays/list2str.html

A touch out of date now, but still broadly accurate.

Cheers,
M.

-- 
  surely, somewhere, somehow, in the history of computing, at least
  one manual has been written that you could at least remotely
  attempt to consider possibly glancing at.              -- Adam Rixey




More information about the Python-list mailing list