cpython: f38b831cb6b9 (original) (raw)

Mercurial > cpython

changeset 103669:f38b831cb6b9 3.5

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

Raymond Hettinger python@rcn.com
date Sun, 11 Sep 2016 17:23:49 -0700
parents cf7da3fd6450
children 130df8dd5984 f12a59311885
files Doc/reference/expressions.rst
diffstat 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Doc/reference/expressions.rst 5

line wrap: on

line diff

--- 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[](#l1.6) -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 yis true if and only if *x* and *y* are the same object. Object identity[](#l1.9) +is determined using the :meth:`id` function. x is not y`` yields the inverse +truth value. [#] .. _booleans: