From a2f154459aa5ac08429160bdbcd9d2a146ac1e79 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 9 Feb 2011 22:55:13 +0000 Subject: Tweak wording about equality comparison. --- Doc/howto/pyporting.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v0.12