markup: removed blank lines to make a definition list
This commit is contained in:
parent
64bf26edce
commit
37739ca138
|
@ -112,7 +112,6 @@ was inserted:
|
||||||
New methods not available on dict:
|
New methods not available on dict:
|
||||||
|
|
||||||
``odict.byindex(index)``
|
``odict.byindex(index)``
|
||||||
|
|
||||||
Returns the key/value pair for an index, that is, the "position" of a key in
|
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.
|
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.
|
If there is no key for index an `IndexError` is raised.
|
||||||
|
|
||||||
``odict.index(key)``
|
``odict.index(key)``
|
||||||
|
|
||||||
Returns the index of a key. If the key does not exist, a `ValueError` is
|
Returns the index of a key. If the key does not exist, a `ValueError` is
|
||||||
raised.
|
raised.
|
||||||
|
|
||||||
``odict.sort(cmp=None, key=None, reverse=False)``
|
``odict.sort(cmp=None, key=None, reverse=False)``
|
||||||
|
|
||||||
Sorts the odict in place by cmp or key. This works exactly like
|
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,
|
``list.sort()``, but the comparison functions are passed a key/value tuple,
|
||||||
not only the value.
|
not only the value.
|
||||||
|
@ -136,11 +133,9 @@ New methods not available on dict:
|
||||||
collections.odict([(1, 4), (23, 7), (42, 1)])
|
collections.odict([(1, 4), (23, 7), (42, 1)])
|
||||||
|
|
||||||
``odict.reverse()``
|
``odict.reverse()``
|
||||||
|
|
||||||
Reverses the odict in place.
|
Reverses the odict in place.
|
||||||
|
|
||||||
``odict.__reverse__()``
|
``odict.__reverse__()``
|
||||||
|
|
||||||
Supports reverse iteration by key.
|
Supports reverse iteration by key.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue