How can I find out if a character is printable? There seems to be no equivalent to isprint() of C. Right now I use: def isprint(char): return (ord(char) in range(32, 127))