(original) (raw)
changeset: 103669:f38b831cb6b9 branch: 3.5 parent: 103664:cf7da3fd6450 user: Raymond Hettinger python@rcn.com date: Sun Sep 11 17:23:49 2016 -0700 files: Doc/reference/expressions.rst description: Issue #26511: Reference the id() function in the 'is' and 'is not' docs diff -r cf7da3fd6450 -r f38b831cb6b9 Doc/reference/expressions.rst --- a/Doc/reference/expressions.rst Sun Sep 11 15:34:56 2016 -0700 +++ b/Doc/reference/expressions.rst Sun Sep 11 17:23:49 2016 -0700 @@ -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: /python@rcn.com