Multiple values for one key
maric at aristote.info
Thu Aug 28 02:40:52 CEST 2008
Le Thursday 28 August 2008 01:56:54 Terry Reedy, vous avez écrit :
> > I'd also like the key to be able to have duplicate entries.
> Dict keys must be hashable and unique.
Let's admit they don't have to be unique (it's easy to implement all sort of
data structures in pure python), but what would be the syntax for modifying
an existing value, for example, what should be the result of two consecutive
d = None
d = 0
d == [ None, 0 ] ??
What exactly are you trying to achieve ?
More information about the Python-list