Re: Filtering out non-readable characters



Jp Calderone wrote:
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen <peter@xxxxxxxxxxx> wrote:
George Sakkis wrote:
identity = string.maketrans('','')

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

http://python.org/doc/lib/node109.html

Perhaps I was unclear. I thought it would be obvious that I knew where to find the docs for maketrans(), but that the particular behaviour shown (i.e. arguments of '' having that effect) was undocumented in that page.


-Peter
.



Relevant Pages

  • Re: Filtering out non-readable characters
    ... That's handy, not to mention undocumented. ... > string module docs.) ... George? ... behaviour where the missing characters weren't filled in, ...
    (comp.lang.python)
  • Re: Filtering out non-readable characters
    ... >>> string module docs.) ... > to find the docs for maketrans(), ... Return a translation table suitable for passing to translateor regex.compile, ... each character in from into the character at the same position in to; from and to must have the same ...
    (comp.lang.python)