These are the string methods which both 8-bit strings and Unicode objects support:
[start:end]
. Optional arguments start and
end are interpreted as in slice notation.
'strict'
, meaning that encoding errors raise
ValueError. Other possible values are 'ignore'
and
replace'
.
New in version 2.2.
'strict'
, meaning that encoding errors raise a
ValueError. Other possible values are 'ignore'
and
'replace'
.
New in version 2.0.
8
characters is assumed.
-1
if sub is
not found.
len(s)
.
-1
on failure.
len(s)
.
None
, any
whitespace string is a separator.
See About this document... for information on suggesting changes.