Message120817
| Author |
Fergal.Daly |
| Recipients |
Fergal.Daly, docs@python, giampaolo.rodola, r.david.murray, rhettinger |
| Date |
2010年11月08日.22:38:39 |
| SpamBayes Score |
6.845695e-10 |
| Marked as misclassified |
No |
| Message-id |
<1289255921.24.0.228310493256.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.
The code just calls into the same code as dict.update(dict) (although
.update can also work on a sequence of twouples).
dict.update's doc string is explicit about what it requires from the argument:
| update(...)
| D.update(E, **F) -> None. Update D from dict/iterable E and F.
| If E has a .keys() method, does: for k in E: D[k] = E[k]
| If E lacks .keys() method, does: for (k, v) in E: D[k] = v
| In either case, this is followed by: for k in F: D[k] = F[k] |
|