ReXX Style translate() function for strings ?
greg at cosc.canterbury.ac.nz
Fri Nov 2 03:56:46 CET 2001
Stephen Ferg wrote:
> input = ""
> for n in xrange(256): # produce numbers 0 through 255
> input = input + chr(n)
or, for a faster way of doing that,
input = ''.join(range(256))
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
More information about the Python-list