Op 2005-01-17, Steve Holden schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > [...] >>>"A foolish consistency is the hobgoblin of little minds". Rules are made >>>to be broken. >> >> >> Like only use immutables as dictionary keys. >> > Fair enough, but don;t go advising newbies to do this.
How about something like this. Because of the extra precautions one has to take when using mutables as hash keys, we advise newbies to stick with immutable keys until they have gathered enough knowledge and experience to adequatly weight the pro and cons of a mutable key solution against an immutable key solution. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list