New submission from Mitchell Model <m...@acm.org>:

The documentation of dict.update says that it "accepts either another 
dictionary object or an iterable of key/value pairs (as a tuple or other 
iterable of length two)" The parenthesized phrase is slightly misleading in 
that it could be interpreted as requiring the argument to be an iterable of 
length two, whereas the argument should be an iterable of iterables of length 2 
(if not a dictionary). Suggest rewriting in the plural:
    (as tuples or other iterables of length two)

----------
assignee: d...@python
components: Documentation
messages: 113557
nosy: MLModel, d...@python
priority: normal
severity: normal
status: open
title: Slightly misleading wording in documentation of dict.update
versions: Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9562>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to