s='' for i in range(1,255): s+=chr(i) has horrible performance (primarily due to string immutability I think). Is there a function to do the ff. instead: x=range(1,255) list2str(x) and have x become a string?