[Python-checkins] cpython (3.5): Issue #26511: Reference the id() function in the 'is' and 'is not' docs
raymond.hettinger
python-checkins at python.org
Sun Sep 11 20:24:10 EDT 2016
https://hg.python.org/cpython/rev/f38b831cb6b9
changeset: 103669:f38b831cb6b9
branch: 3.5
parent: 103664:cf7da3fd6450
user: Raymond Hettinger <python at rcn.com>
date: Sun Sep 11 17:23:49 2016 -0700
summary:
Issue #26511: Reference the id() function in the 'is' and 'is not' docs
files:
Doc/reference/expressions.rst | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1315,8 +1315,9 @@
--------------------
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list