help please

Steven Bethard steven.bethard at gmail.com
Mon Feb 21 00:47:31 EST 2005


Dennis Lee Bieber wrote:
> On 20 Feb 2005 20:12:50 -0800, "gargonx" <gargonx at gmail.com> 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



More information about the Python-list mailing list