diff --git a/pep-0372.txt b/pep-0372.txt index 2ba78f6da..ea79df493 100644 --- a/pep-0372.txt +++ b/pep-0372.txt @@ -155,18 +155,20 @@ Python 3 Version ================ The Python 3 version of the ``odict`` returns dictionary views rather -than lists for ``odict.keys()``, ``odict.values()`` and ``odict.items()``. -The keys-view is equivalent to a regular key view but supports the following -extra or changed operations: +than lists for ``odict.keys()``, ``odict.values()`` and +``odict.items()``. The keys view is equivalent to a regular keys view +but supports the following extra or changed operations: ``odict_keys.__getitem__(index)`` - Returns the key for an index. This is equivalent to ``odict.byindex(index)``. + Returns the key for an index. This is equivalent to + ``odict.byindex(index)``. ``odict_keys.index(key)`` - Returns the index for a key. This exists for compatibility with the - `Sequence` abstract base class and is equivalent to ``odict.index(key)``. + Returns the index for a key. This exists for compatibility with + the ``Sequence`` abstract base class and is equivalent to + ``odict.index(key)``. ``odict_keys.__iter__()`` @@ -176,10 +178,12 @@ extra or changed operations: Has the same semantics as ``odict.__reversed__()``. -``odict_keys.__cmp__()`` / ``odict_keys.__eq__()`` / ``odict_keys.__ne__()`` +``odict_keys.__cmp__()`` / ``odict_keys.__eq__()`` / +``odict_keys.__ne__()`` - Same semantics as the equivalent ``odict`` operation. Eg: when compared - to another odict keys-view the ordering is taken into account. + Same semantics as the equivalent ``odict`` operation. E.g.: when + compared to another odict keys view the ordering is taken into + account. Questions and Answers