From: Raymond Hettinger Date: Mon, 12 Sep 2016 00:23:49 +0000 (-0700) Subject: Issue #26511: Reference the id() function in the 'is' and 'is not' docs X-Git-Tag: v3.6.0b1~17^2~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e18a7c2473e6d1e8be3dee5c9232ab934e1ef2;p=python Issue #26511: Reference the id() function in the 'is' and 'is not' docs --- 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: