summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-12 00:23:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-12 00:23:49 (GMT)
commit06e18a7c2473e6d1e8be3dee5c9232ab934e1ef2 (patch)
treec2a126d09ef82f113b612d368105012f341feba4 /Doc
parent0a6976da105a5be76a6a342c7eb978c82b2fd4d2 (diff)
downloadcpython-06e18a7c2473e6d1e8be3dee5c9232ab934e1ef2.zip
cpython-06e18a7c2473e6d1e8be3dee5c9232ab934e1ef2.tar.gz
cpython-06e18a7c2473e6d1e8be3dee5c9232ab934e1ef2.tar.bz2
Issue #26511: Reference the id() function in the 'is' and 'is not' docs
Diffstat (limited to 'Doc')
-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 eafd70a..08938b2 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: