On 20 Feb 2005 20:12:50 -0800, "gargonx" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
decode_replacements.update([(std[key], key) for key in std])
Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: keys
Did you read the reference manual?
Yes, actually. But I generally check only the reference manual for the current version of Python:
http://docs.python.org/lib/typesmapping.html
which does support sequence arguments for dict.update. As noted there, of course, this support was added for Python 2.4.
STeVe -- http://mail.python.org/mailman/listinfo/python-list