diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 14:18:10 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-01 14:18:10 (GMT) |
commit | c48d83402687c0c5d6da1c7bb1a677208effa35e (patch) | |
tree | 3bc0e90855d9d77d2355e0e477c354d765db12b0 /Doc/reference | |
parent | c008a176afdef8cb7afc0e48a8fb306f986964e8 (diff) | |
download | cpython-c48d83402687c0c5d6da1c7bb1a677208effa35e.zip cpython-c48d83402687c0c5d6da1c7bb1a677208effa35e.tar.gz cpython-c48d83402687c0c5d6da1c7bb1a677208effa35e.tar.bz2 |
Issue #1717: documentation fixes related to the cmp removal.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 100d81c..604a8f0 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1022,8 +1022,8 @@ Comparison of objects of the same type depends on the type: length. If not equal, the sequences are ordered the same as their first differing - elements. For example, ``cmp([1,2,x], [1,2,y])`` returns the same as - ``cmp(x,y)``. If the corresponding element does not exist, the shorter + elements. For example, ``[1,2,x] <= [1,2,y]`` has the same value as + ``x <= y``. If the corresponding element does not exist, the shorter sequence is ordered first (for example, ``[1,2] < [1,2,3]``). * Mappings (dictionaries) compare equal if and only if their sorted ``(key, |