mirror of https://github.com/python/cpython
Remove obsolete note.
This commit is contained in:
parent
ad433db9b4
commit
fd855164d0
|
@ -141,43 +141,25 @@ evaluated at all when ``x < y`` is found to be false).
|
||||||
|
|
||||||
This table summarizes the comparison operations:
|
This table summarizes the comparison operations:
|
||||||
|
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| Operation | Meaning | Notes |
|
| Operation | Meaning |
|
||||||
+============+=========================+=======+
|
+============+=========================+
|
||||||
| ``<`` | strictly less than | |
|
| ``<`` | strictly less than |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``<=`` | less than or equal | |
|
| ``<=`` | less than or equal |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``>`` | strictly greater than | |
|
| ``>`` | strictly greater than |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``>=`` | greater than or equal | |
|
| ``>=`` | greater than or equal |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``==`` | equal | |
|
| ``==`` | equal |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``!=`` | not equal | |
|
| ``!=`` | not equal |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``is`` | object identity | |
|
| ``is`` | object identity |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
| ``is not`` | negated object identity | |
|
| ``is not`` | negated object identity |
|
||||||
+------------+-------------------------+-------+
|
+------------+-------------------------+
|
||||||
|
|
||||||
.. index::
|
|
||||||
pair: operator; comparison
|
|
||||||
operator: ==
|
|
||||||
operator: <
|
|
||||||
operator: <=
|
|
||||||
operator: >
|
|
||||||
operator: >=
|
|
||||||
operator: !=
|
|
||||||
operator: is
|
|
||||||
operator: is not
|
|
||||||
|
|
||||||
Notes:
|
|
||||||
|
|
||||||
(1)
|
|
||||||
``!=`` can also be written ``<>``, but this is an obsolete usage
|
|
||||||
kept for backwards compatibility only. New code should always use
|
|
||||||
``!=``.
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
pair: object; numeric
|
pair: object; numeric
|
||||||
|
|
Loading…
Reference in New Issue