help please

Steven Bethard steven.bethard at gmail.com
Sun Feb 20 15:04:00 EST 2005


gargonx wrote:
> I think there's a problem with the code:
> 
>  py> decode_replacements.update([(std[key], key) for key in std])
>  py> decode_replacements.update([(ext[key], key) for key in ext])
> 
> when i run this i get an error:
>  AttributeError: keys
> 
> I can't get that figured out

Can you show the part of your code in which you do this?  As you can see 
from the interactive Python session I posted, I didn't get an 
AttributeError...

STeVe



More information about the Python-list mailing list