Commit 97503f76 authored by Raymond Hettinger's avatar Raymond Hettinger

Issue #26511: Reference the id() function in the 'is' and 'is not' docs

parent e5265467
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment