dictionary error: list assignment index out of range

Octavian Rasnita orasnita at gmail.com
Fri Jan 28 03:43:27 EST 2011


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 mail. Cheers


  [] is for lists.
  () is for tuples.

  HTH.

  Octavian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110128/e2453131/attachment-0001.html>


More information about the Python-list mailing list