ReXX Style translate() function for strings ?

Steve Holden sholden at holdenweb.com
Fri Nov 2 14:18:27 CET 2001


"Andrew Dalke" <dalke at dalkescientific.com> wrote in message
news:9rt3co$rid$1 at slb2.atl.mindspring.net...
> Greg Ewing:
> >   input = ''.join(range(256))
>
> input = "".join(map(chr, range(256)))
>
input = "".join([chr(x) for x in range(256)])

--
http://www.holdenweb.com/








More information about the Python-list mailing list