mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Tweak wording about equality comparison.
This commit is contained in:
parent
91638e70d3
commit
a2f154459a
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ it can be very misleading::
|
||||||
>>> b"" == ""
|
>>> b"" == ""
|
||||||
False
|
False
|
||||||
|
|
||||||
This is because comparison for equality is required by the language to always
|
This is because an equality comparison is required by the language to always
|
||||||
succeed (and return ``False`` for incompatible types). However, this also
|
succeed (and return ``False`` for incompatible types). However, this also
|
||||||
means that code incorrectly ported to Python 3 can display buggy behaviour
|
means that code incorrectly ported to Python 3 can display buggy behaviour
|
||||||
if such comparisons are silently executed. To detect such situations,
|
if such comparisons are silently executed. To detect such situations,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue