This commit is contained in:
Andrew M. Kuchling 2005-08-31 17:49:38 +00:00
parent 2330e9eed9
commit c28dd1faa5
1 changed files with 1 additions and 1 deletions

View File

@ -1313,7 +1313,7 @@ Another common task is deleting every occurrence of a single character
from a string or replacing it with another single character. You
might do this with something like \code{re.sub('\e n', ' ', S)}, but
\method{translate()} is capable of doing both tasks
and will be faster that any regular expression operation can be.
and will be faster than any regular expression operation can be.
In short, before turning to the \module{re} module, consider whether
your problem can be solved with a faster and simpler string method.