mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Typo fix
This commit is contained in:
parent
2330e9eed9
commit
c28dd1faa5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
from a string or replacing it with another single character. You
|
||||||
might do this with something like \code{re.sub('\e n', ' ', S)}, but
|
might do this with something like \code{re.sub('\e n', ' ', S)}, but
|
||||||
\method{translate()} is capable of doing both tasks
|
\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
|
In short, before turning to the \module{re} module, consider whether
|
||||||
your problem can be solved with a faster and simpler string method.
|
your problem can be solved with a faster and simpler string method.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue