diff options
author | Brett Cannon <bcannon@gmail.com> | 2011-02-09 22:55:13 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2011-02-09 22:55:13 (GMT) |
commit | a2f154459aa5ac08429160bdbcd9d2a146ac1e79 (patch) | |
tree | 932ef88cc8bff39bc5749c9138b5756e1bee448d /Doc/howto | |
parent | 91638e70d3db482290e95eb826074ca15c3c14ef (diff) | |
download | cpython-a2f154459aa5ac08429160bdbcd9d2a146ac1e79.zip cpython-a2f154459aa5ac08429160bdbcd9d2a146ac1e79.tar.gz cpython-a2f154459aa5ac08429160bdbcd9d2a146ac1e79.tar.bz2 |
Tweak wording about equality comparison.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/pyporting.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst index 3d9ef7f..fc08d18 100644 --- a/Doc/howto/pyporting.rst +++ b/Doc/howto/pyporting.rst @@ -380,7 +380,7 @@ it can be very misleading:: >>> b"" == "" 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 means that code incorrectly ported to Python 3 can display buggy behaviour if such comparisons are silently executed. To detect such situations, |