Kaydet (Commit) a2f15445 authored tarafından Brett Cannon's avatar Brett Cannon

Tweak wording about equality comparison.

üst 91638e70
...@@ -380,7 +380,7 @@ it can be very misleading:: ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment