mirror of https://github.com/python/cpython
Patch #744238: Explain that different string types also may compare equal.
This commit is contained in:
parent
7472336444
commit
19a5a710fc
|
@ -144,7 +144,7 @@ Notes:
|
|||
|
||||
\end{description}
|
||||
|
||||
Objects of different types, except different numeric types, never
|
||||
Objects of different types, except different numeric types and different string types, never
|
||||
compare equal; such objects are ordered consistently but arbitrarily
|
||||
(so that sorting a heterogeneous array yields a consistent result).
|
||||
Furthermore, some types (for example, file objects) support only a
|
||||
|
|
Loading…
Reference in New Issue