This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Fergal.Daly, docs@python, giampaolo.rodola, r.david.murray, rhettinger
Date 2010-11-08.23:13:19
SpamBayes Score 4.5043304e-08
Marked as misclassified No
Message-id <1289258001.62.0.623259608123.issue10357@psf.upfronthosting.co.za>
In-reply-to
Content
> Even if the glossary pointed to collections.html, 
> there are far more methods specified there than 
> are needed to be **able.

That is an implementation detail and is subject to
change.  If someone supplies an argument satisfying
collections.Mapping, that should be sufficient across
all implementations.

> dict.update's doc string is explicit about what 
> it requires from the argument:

Duck-typing is still allowed when explicit requirements
have been exposed (we do this a lot with .readline() for
example).  For the most part though, we want to specify
"needs a Mapping" in the sense of collections.Mapping.
History
Date User Action Args
2010-11-08 23:13:21rhettingersetrecipients: + rhettinger, giampaolo.rodola, r.david.murray, docs@python, Fergal.Daly
2010-11-08 23:13:21rhettingersetmessageid: <1289258001.62.0.623259608123.issue10357@psf.upfronthosting.co.za>
2010-11-08 23:13:19rhettingerlinkissue10357 messages
2010-11-08 23:13:19rhettingercreate