dict's as dict's key.

Ethan Furman ethan at stoneleaf.us
Sun Jan 17 02:29:25 CET 2010


Lie Ryan wrote:
> On 01/14/10 05:33, Albert van der Horst wrote:
> 
>>(I encountered this before. A dictionary is a natural for a
>>boardgame position, i.e. chess. Now we want to look up chess
>>positions.)
> 
> 
> or use collections.namedtuple

Which is great until you want to make a move.  ;)

~Ethan~



More information about the Python-list mailing list