mirror of
https://github.com/python/cpython.git
synced 2025-10-31 18:28:49 +00:00
merge
This commit is contained in:
commit
0b51fd4341
1 changed files with 3 additions and 2 deletions
|
|
@ -1315,8 +1315,9 @@ Identity comparisons
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
The operators :keyword:`is` and :keyword:`is not` test for object identity: ``x
|
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``
|
is y`` is true if and only if *x* and *y* are the same object. Object identity
|
||||||
yields the inverse truth value. [#]_
|
is determined using the :meth:`id` function. ``x is not y`` yields the inverse
|
||||||
|
truth value. [#]_
|
||||||
|
|
||||||
|
|
||||||
.. _booleans:
|
.. _booleans:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue