printable characters

Ralf Hildebrandt hildeb at www.stahl.bau.tu-bs.de
Fri Dec 3 07:57:05 EST 1999


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))





More information about the Python-list mailing list