list vs. dict
Max M
maxm at mxm.dk
Thu Feb 28 17:52:24 EST 2002
Jeff Shannon wrote:
>
> dsavitsk wrote:
>
>
>>"Max M" <maxm at mxm.dk> wrote in message news:3C7CFAF8.1080108 at mxm.dk...
>>
>>
>>>btw: if you really want to store it in a list you can get dict-like
>>>behaviour with list speed like this:
>>>
>>is this a python idiom that people often use? cause i've not seen it before,
>>but it is really clever
>
> No, it's not something that people often use. Generally, if you want dict-like
> behavior, you just use a dict.
I absolutely agree!
regards Max M
More information about the Python-list
mailing list