Tweak wording about equality comparison.

This commit is contained in:
Brett Cannon 2011-02-09 22:55:13 +00:00
parent 91638e70d3
commit a2f154459a

View file

@ -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,