From: Brett Cannon Date: Wed, 9 Feb 2011 22:55:13 +0000 (+0000) Subject: Tweak wording about equality comparison. X-Git-Tag: v3.2rc3~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2f154459aa5ac08429160bdbcd9d2a146ac1e79;p=python Tweak wording about equality comparison. --- diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst index 3d9ef7fe0c..fc08d18a90 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,