Re: dictionary error: list assignment index out of range

2011-01-28 Thread Octavian Rasnita
From: Vaduvoiu Tiberiu > Well, to quote firefox: this is embarrassing. I've realized the dictionary initialization is wrong, as [] means its a tuple, I should use {}. That's why I > don't like working nights..it's only in the morning when you start seeing things better. I apologize for the ma

Re: dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
for the mail. Cheers From: Vaduvoiu Tiberiu To: python-list@python.org Sent: Fri, January 28, 2011 9:34:57 AM Subject: dictionary error: list assignment index out of range Hy everyone, I'm trying to learng python for a week or two and there's a thing that is re

dictionary error: list assignment index out of range

2011-01-27 Thread Vaduvoiu Tiberiu
Hy everyone, I'm trying to learng python for a week or two and there's a thing that is really disturbing me as I do not understand what the problem is. I'm trying to use a dictionary to remember when a user has visited a city. Code is really basic: in the class init method I added self.visited