diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-04-04 02:54:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 02:54:49 (GMT) |
commit | f8775e4f72240faba3947eea8efdd83ee56ae1fd (patch) | |
tree | efc37102dd4ecb53d16200b2b164e896bf403b68 /Doc/tutorial | |
parent | 35715d1e72b7e15e337087863c75af447199e0fb (diff) | |
download | cpython-f8775e4f72240faba3947eea8efdd83ee56ae1fd.zip cpython-f8775e4f72240faba3947eea8efdd83ee56ae1fd.tar.gz cpython-f8775e4f72240faba3947eea8efdd83ee56ae1fd.tar.bz2 |
bpo-43325: Add FAQ entry for identity tests (GH-25168)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 5c6b65f..e42b380 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -661,9 +661,8 @@ operators, not just comparisons. The comparison operators ``in`` and ``not in`` check whether a value occurs (does not occur) in a sequence. The operators ``is`` and ``is not`` compare -whether two objects are really the same object; this only matters for mutable -objects like lists. All comparison operators have the same priority, which is -lower than that of all numerical operators. +whether two objects are really the same object. All comparison operators have +the same priority, which is lower than that of all numerical operators. Comparisons can be chained. For example, ``a < b == c`` tests whether ``a`` is less than ``b`` and moreover ``b`` equals ``c``. |