diff --git a/pep-0372.txt b/pep-0372.txt index ff29caa18..11da153d5 100644 --- a/pep-0372.txt +++ b/pep-0372.txt @@ -112,7 +112,6 @@ was inserted: New methods not available on dict: ``odict.byindex(index)`` - Returns the key/value pair for an index, that is, the "position" of a key in the ordered dict. 0 is the first key/value pair, -1 the last. @@ -122,12 +121,10 @@ New methods not available on dict: If there is no key for index an `IndexError` is raised. ``odict.index(key)`` - Returns the index of a key. If the key does not exist, a `ValueError` is raised. ``odict.sort(cmp=None, key=None, reverse=False)`` - Sorts the odict in place by cmp or key. This works exactly like ``list.sort()``, but the comparison functions are passed a key/value tuple, not only the value. @@ -136,11 +133,9 @@ New methods not available on dict: collections.odict([(1, 4), (23, 7), (42, 1)]) ``odict.reverse()`` - Reverses the odict in place. ``odict.__reverse__()`` - Supports reverse iteration by key.