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

This commit is contained in:
Raymond Hettinger 2016-09-11 17:23:49 -07:00
parent 0a6976da10
commit 06e18a7c24

View file

@ -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: