mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] Format None, True, False and NotImplemented as literals (GH-118758) (GH-118794)
(cherry picked from commit 05c2fe1acd
)
This commit is contained in:
parent
b83b3cb9da
commit
530c3bb271
33 changed files with 76 additions and 75 deletions
|
@ -126,7 +126,7 @@ Python.
|
|||
|
||||
Another thing you might notice is that not all data can be sorted or
|
||||
compared. For instance, ``[None, 'hello', 10]`` doesn't sort because
|
||||
integers can't be compared to strings and *None* can't be compared to
|
||||
integers can't be compared to strings and ``None`` can't be compared to
|
||||
other types. Also, there are some types that don't have a defined
|
||||
ordering relation. For example, ``3+4j < 5+7j`` isn't a valid
|
||||
comparison.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue