"Bengt Richter" <[EMAIL PROTECTED]> wrote: > >>> identity = ''.join([chr(i) for i in xrange(256)]) > >>> unprintable = ''.join([c for c in identity if c not in string.printable])
Or equivalently:
>>> identity = string.maketrans('','')
>>> unprintable = identity.translate(identity, string.printable)
George
--
http://mail.python.org/mailman/listinfo/python-list
