fast way of turning a list of integers<256 into a string
p-abel at t-online.de
Tue Jan 14 08:40:18 CET 2003
jbperez808 at yahoo.com (Jonathan P.) wrote in message news:<f57664b9.0301131444.26ca3b43 at posting.google.com>...
> for i in range(1,255):
> has horrible performance (primarily due to string
> immutability I think). Is there a function to do
> the ff. instead:
> and have x become a string?
everybody has one shot free.
Here is mine one:
>>> text=reduce(lambda x,y:x+chr(y),range(32,128,1),'')
More information about the Python-list