Mercurial > cpython-lru_cache-weakref
comparison Doc/lib/libstdtypes.tex @ 32975:9b188158181f legacy-trunk
Typo fix; use 'in-place' instead of 'inplace'
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Fri, 06 Aug 2004 18:55:09 +0000 |
| parents | fb6ffd290cfb |
| children | b5dcfe7a4159 |
comparison
equal
deleted
inserted
replaced
| 32974:fb6ffd290cfb | 32975:9b188158181f |
|---|---|
| 535 \var{i} or \var{j} are omitted then they become ``end'' values | 535 \var{i} or \var{j} are omitted then they become ``end'' values |
| 536 (which end depends on the sign of \var{k}). Note, \var{k} cannot | 536 (which end depends on the sign of \var{k}). Note, \var{k} cannot |
| 537 be zero. | 537 be zero. |
| 538 | 538 |
| 539 \item[(6)] If \var{s} and \var{t} are both strings, some Python | 539 \item[(6)] If \var{s} and \var{t} are both strings, some Python |
| 540 implementations such as CPython can usally perform an inplace optimization | 540 implementations such as CPython can usually perform an in-place optimization |
| 541 for assignments of the form \code{\var{s}=\var{s}+\var{t}} or | 541 for assignments of the form \code{\var{s}=\var{s}+\var{t}} or |
| 542 \code{\var{s}+=\var{t}}. When applicable, this optimization makes | 542 \code{\var{s}+=\var{t}}. When applicable, this optimization makes |
| 543 quadratic run-time much less likely. This optimization is both version | 543 quadratic run-time much less likely. This optimization is both version |
| 544 and implementation dependent. For performance sensitive code, it is | 544 and implementation dependent. For performance sensitive code, it is |
| 545 preferrable to use the \method{str.join()} method which assures consistent | 545 preferrable to use the \method{str.join()} method which assures consistent |
| 546 linear concatenation performance across versions and implementations. | 546 linear concatenation performance across versions and implementations. |
| 547 \versionchanged[Formerly, string concatenation never occurred inplace]{2.4} | 547 \versionchanged[Formerly, string concatenation never occurred in-place]{2.4} |
| 548 | 548 |
| 549 \end{description} | 549 \end{description} |
| 550 | 550 |
| 551 | 551 |
| 552 \subsubsection{String Methods \label{string-methods}} | 552 \subsubsection{String Methods \label{string-methods}} |
