From 38862b6f9cc7884ac2217e58d78d43af3d7d59cf Mon Sep 17 00:00:00 2001 From: Paula Milenkova <44276092+paulamilenkova@users.noreply.github.com> Date: Wed, 14 Nov 2018 05:38:40 -0800 Subject: [PATCH] Add text that elaborates on 'is' with '=' (#21537) I added text that explicitly states the 'is' is signified with '=' since that was not already written and can help beginners distinguish better. --- .../difference-between-is-and-equal-equal-operators/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/python/difference-between-is-and-equal-equal-operators/index.md b/guide/english/python/difference-between-is-and-equal-equal-operators/index.md index 3cd26bbd26..422d4da236 100644 --- a/guide/english/python/difference-between-is-and-equal-equal-operators/index.md +++ b/guide/english/python/difference-between-is-and-equal-equal-operators/index.md @@ -1,7 +1,7 @@ --- title: Difference between Python 'is' and '==' operators --- -`is` is a check for object identity - ie, checking if two or more variables are referring to the same object. You can't overload `is`. +`is` is a check for object identity - ie, checking if two or more variables are referring to the same object. You can't overload `is`. That object identity is established and assigned with `=`. `==` evaluates to true if object referred to by the variables are equal. You can overload `==` via the `__eq__` operator.