Help with dictionary, please

Gordon McMillan gmcm at hypernet.com
Fri Aug 6 16:13:43 CEST 1999


Klaus Alexander Seistrup wrote:

> The variable key should be a string, you're supplying a tupple.

Not at all. Tuples (or any immutable object) make fine dictionary 
keys.

The original problem is almost undoubtedly indentation (tabs & 
spaces, with editor interpretation out of sync with Python's).

- Gordon




More information about the Python-list mailing list