Jp Calderone pointed out that most Python library modules were updated

to support __iter__ and __contains__.

* Removed shelve as a specific counter-example.
* Changed the wording to "may not" so that user and third party modules
  are considered.
This commit is contained in:
Raymond Hettinger 2003-01-25 20:21:30 +00:00
parent ae0f0f9903
commit 45511b4a61
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ Pattern::
Contra-indications:
1. Some dictionary-like objects like ``shelve`` do not define a
1. Some dictionary-like objects may not define a
``__contains__()`` method::
if dictlike.has_key(k)
@ -166,7 +166,7 @@ Contra-indications:
def getids(): return d.keys()
2. Some dictionary-like objects like ``shelve`` do not define
2. Some dictionary-like objects may not define
``iter`` methods::
for k in dictlike.keys():