mirror of https://github.com/python/cpython
Minor re-wording in the exaplantion of sequence comparisons.
This closes SF bug #445749.
This commit is contained in:
parent
e74f8de385
commit
20c94913de
|
@ -2039,9 +2039,10 @@ If two items to be compared are themselves sequences of the same type,
|
|||
the lexicographical comparison is carried out recursively. If all
|
||||
items of two sequences compare equal, the sequences are considered
|
||||
equal. If one sequence is an initial sub-sequence of the other, the
|
||||
shorter sequence is the smaller one. Lexicographical ordering for
|
||||
strings uses the \ASCII{} ordering for individual characters. Some
|
||||
examples of comparisons between sequences with the same types:
|
||||
shorter sequence is the smaller (lesser) one. Lexicographical
|
||||
ordering for strings uses the \ASCII{} ordering for individual
|
||||
characters. Some examples of comparisons between sequences with the
|
||||
same types:
|
||||
|
||||
\begin{verbatim}
|
||||
(1, 2, 3) < (1, 2, 4)
|
||||
|
|
Loading…
Reference in New Issue