From f20be4cfc437475ece4aa745557cb73a54f94a7c Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Sun, 19 Jan 2020 10:13:50 -0500 Subject: [PATCH] Extend the explanation of the "is not ..." section I thought that the explanation for "'something' is (not None)" could be a little more explicit. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b5c96f..60cead4 100644 --- a/README.md +++ b/README.md @@ -933,7 +933,7 @@ False #### 💡 Explanation - `is not` is a single binary operator, and has behavior different than using `is` and `not` separated. -- `is not` evaluates to `False` if the variables on either side of the operator point to the same object and `True` otherwise. +- `is not` evaluates to `False` if the variables on either side of the operator point to the same object and `True` otherwise. In this expression, `(not None)` evaluates to `True`, since `None` is is `False` in a boolean context, so the expression becomes `'something' is True`. ---