summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-11 17:23:49 -0700
committerRaymond Hettinger <python@rcn.com>2016-09-11 17:23:49 -0700
commit3f5c02a54c22b1454a250fe61d832ba5d5a126d2 (patch)
tree57af7d653cf557ebbf9ec734312c10756d68b6ab
parentfba66722b4de0207192f2f9e6d081230e777a070 (diff)
downloadcpython-3f5c02a54c22b1454a250fe61d832ba5d5a126d2.tar.gz
Issue #26511: Reference the id() function in the 'is' and 'is not' docs
-rw-r--r--Doc/reference/expressions.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index eafd70a835..08938b23c2 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1315,8 +1315,9 @@ Identity comparisons
--------------------
The operators :keyword:`is` and :keyword:`is not` test for object identity: ``x
-is y`` is true if and only if *x* and *y* are the same object. ``x is not y``
-yields the inverse truth value. [#]_
+is y`` is true if and only if *x* and *y* are the same object. Object identity
+is determined using the :meth:`id` function. ``x is not y`` yields the inverse
+truth value. [#]_
.. _booleans: