Help with dictionary, please

Klaus Alexander Seistrup kas at maps.magnetic-ink.dk
Fri Aug 6 12:15:20 EDT 1999


Gordon McMillan 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.

Sure, I was confusing dictionaries with anydbm objects.  I even tried to
cancel my article but it seems that you were too fast. ;-)  Sorry about
the misinformation.

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

Yes, I read your answer.


Cheers,

  //Klaus

-- 
···[ Magnetic Ink ]················································· ><> ···
···[ Key fingerprint: 2E37 EAED F848 815B 050A FBAA 8F68 DD66 B4B3 7EC4 ]···




More information about the Python-list mailing list