Filtering out non-readable characters

Peter Hansen peter at
Sun Jul 17 01:01:50 CEST 2005

George Sakkis wrote:
> "Bengt Richter" <bokr at> wrote:
>> >>> identity = ''.join([chr(i) for i in xrange(256)])
> Or equivalently:
>>>>identity = string.maketrans('','')

Wow!  That's handy, not to mention undocumented.  (At least in the 
string module docs.)  Where did you learn that, George?


More information about the Python-list mailing list