Typing string.whitespace
gives you a string containing all whitespace characters defined by Python's string
module:
'\t\n\x0b\x0c\r '
Both \x0b
and \x0c
seem to give a vertical tab.
>>> print 'first\x0bsecond'
first
second
\v
gives the same effect. How are these three different? Why does the string
module use \x0b
or \x0c
over the simpler \v
?