Dictionaries with invalid key?

Gerhard W. Gruber g.gruber at xsoft.co.at
Mon Sep 6 09:17:58 EDT 1999


Usually a dictionary conists of a key and a value. I thought that keys
are strings. Now I wrote some code that managed to create a key that is
a number instead of a string. Is this a bug or is this ok?
-- 
bye,
   Gerhard
email: sparhawk at eunet.at
       g.gruber at xsoft.co.at




More information about the Python-list mailing list