Next / Previous / Contents / Shipman's homepage

7.15. printables: All the printable non-whitespace characters

The variable pp.printables is a str containing all the printable, non-whitespace characters. Of the 128 7-bit ASCII characters, the first 32 are control characters; counting space and DEL, this leaves 94 printables.

>>> len(pp.printables)
94
>>> print pp.printables
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&'()*+,-
./:;<=>?@[\]^_`{|}~