mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fix a typo pointed out on docs@
This commit is contained in:
parent
500af332f4
commit
57c616f1e4
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,7 +1067,7 @@ Comparison of objects of the same type depends on the type:
|
|||
* Numbers are compared arithmetically.
|
||||
|
||||
* The values :const:`float('NaN')` and :const:`Decimal('NaN')` are special.
|
||||
The are identical to themselves, ``x is x`` but are not equal to themselves,
|
||||
They are identical to themselves, ``x is x`` but are not equal to themselves,
|
||||
``x != x``. Additionally, comparing any value to a not-a-number value
|
||||
will return ``False``. For example, both ``3 < float('NaN')`` and
|
||||
``float('NaN') < 3`` will return ``False``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue