Confusion about dictionaries - keys use value or identity?

Steve Holden sholden at holdenweb.com
Mon Jul 9 08:16:49 EDT 2001


"Tim Peters" <tim.one at home.com> wrote in ...
> [Steve Holden]
> > We are talking about has_key here, right?
> 
> RIght.
> 
> > I was simply trying (perhaps rather too hurriedly, as it turned out)
> > the fact that strings if unequal lengths could not be equal, and only
> > equality is required when indexing a dictionary.
> 
> Good point, and I hadn't fully realized the context.  Things are still
> subtler than you may think, though.
> 
things-are-almost-always-subtler-than-*i*-think-ly y'rs -  steve
-- 
http://www.holdenweb.com/








More information about the Python-list mailing list