Dave Angel Wrote
in message:
> "Clayton Kirkwood" Wrote in message:
>>
>>
>> !-Original Message-
>> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
>> !Behalf Of Steven D'Aprano
> ...
>>
>> For clarification, a key only has one value which can be changed.
>
> No
"Clayton Kirkwood" Wrote in message:
>
>
> !-Original Message-
> !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
> !Behalf Of Steven D'Aprano
...
>
> For clarification, a key only has one value which can be changed.
No, because the key has to be immutable, like a
!-Original Message-
!From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
!Behalf Of Steven D'Aprano
!Sent: Wednesday, October 22, 2014 4:40 AM
!To: tutor@python.org
!Subject: Re: [Tutor] A couple of somewhat esoteric questions
!
!On Tue, Oct 21, 2014 at 04:54:33PM
On Tue, Oct 21, 2014 at 04:54:33PM -0700, Clayton Kirkwood wrote:
> As I've contemplated the usage of dictionaries, I face the question of
> efficiency. Going back before most of you were probably born;<)) if I
> remember correctly dictionaries(assoc. arrays), having hashes, are efficient
> for st
On 22/10/14 00:54, Clayton Kirkwood wrote:
As I’ve contemplated the usage of dictionaries, I face the question of
efficiency.
Don;t worry about it. Python dictionaries are highly efficient and used
throughout the language. namespaces and classes are both effectively
dictionaries so every time
As I've contemplated the usage of dictionaries, I face the question of
efficiency. Going back before most of you were probably born;<)) if I
remember correctly dictionaries(assoc. arrays), having hashes, are efficient
for storing sparse arrays with the added benefit of hiding the traversal of
the d