Re: [Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Dave Angel
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

Re: [Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Dave Angel
"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

Re: [Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Clayton Kirkwood
!-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

Re: [Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Steven D'Aprano
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

Re: [Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Alan Gauld
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

[Tutor] A couple of somewhat esoteric questions

2014-10-22 Thread Clayton Kirkwood
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