ReXX Style translate() function for strings ?

Skip Montanaro skip at pobox.com
Fri Nov 2 10:36:00 EST 2001


    Steve> input = "".join([chr(x) for x in range(256)])

Not that it's used all that often, but there is an input builtin, so in the
interest of not hiding builtin functions, it's probably best to get into the
habit of not using them as local variable names.

have-we-flogged-this-horse-enough?-ly, y'rs,

<wink>

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list