@@ -1602,7 +1602,7 @@ either to emulate a sequence or to emulate a mapping; the difference is that for
16021602a sequence, the allowable keys should be the integers *k * for which ``0 <= k <
16031603N `` where *N * is the length of the sequence, or slice objects, which define a
16041604range of items. It is also recommended that mappings provide the methods
1605- :meth: `keys `, :meth: `values `, :meth: `items `, :meth: `has_key `, :meth: ` get `,
1605+ :meth: `keys `, :meth: `values `, :meth: `items `, :meth: `get `,
16061606:meth: `clear `, :meth: `setdefault `,
16071607:meth: `pop `, :meth: `popitem `, :meth: `copy `, and
16081608:meth: `update ` behaving similar to those for Python's standard dictionary
@@ -1618,8 +1618,8 @@ repetition) by defining the methods :meth:`__add__`, :meth:`__radd__`,
16181618described below; they should not define other numerical operators. It is
16191619recommended that both mappings and sequences implement the :meth: `__contains__ `
16201620method to allow efficient use of the ``in `` operator; for mappings, ``in ``
1621- should be equivalent of :meth: ` has_key ` ; for sequences, it should search through
1622- the values. It is further recommended that both mappings and sequences
1621+ should search the mapping's keys ; for sequences, it should search
1622+ through the values. It is further recommended that both mappings and sequences
16231623implement the :meth: `__iter__ ` method to allow efficient iteration through the
16241624container; for mappings, :meth: `__iter__ ` should be the same as
16251625:meth: `keys `; for sequences, it should iterate through the values.
0 commit comments