PyDocs

Text Processing Services

string

A collection of string constants.

Public module variables:

whitespace -- a string containing all ASCII whitespace
ascii_lowercase -- a string containing all ASCII lowercase letters
ascii_uppercase -- a string containing all ASCII uppercase letters
ascii_letters -- a string containing all ASCII letters
digits -- a string containing all ASCII decimal digits
hexdigits -- a string containing all ASCII hexadecimal digits
octdigits -- a string containing all ASCII octal digits
punctuation -- a string containing all ASCII punctuation characters
printable -- a string containing all ASCII characters considered printable
Symbols in string

a

ascii_letters
The concatenation of the ascii_lowercase and ascii_uppercase constants described below.
ascii_lowercase
The lowercase letters 'abcdefghijklmnopqrstuvwxyz'.
ascii_uppercase
The uppercase letters 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

c

capwords
Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join.

d

digits
The string '0123456789'.

f

Formatter
See PEP 3101 for details and purpose of this class.

h

hexdigits
The string '0123456789abcdefABCDEF'.

o

octdigits
The string '01234567'.

p

printable
String of ASCII characters which are considered printable by Python.
punctuation
String of ASCII characters which are considered punctuation characters in the C locale: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~.

t

Template
A string class for supporting $-substitutions.

w

whitespace
A string containing all ASCII characters that are considered whitespace.