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:
parent
ae0f0f9903
commit
45511b4a61
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue