Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93056

Re: Looking up a dictionary _key_ by key?

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.python
Subject Re: Looking up a dictionary _key_ by key?
Date Tue, 23 Jun 2015 18:02:48 -0700
Organization A noiseless patient Spider
Lines 5
Message-ID <87h9pxyl3b.fsf@nightsong.com> (permalink)
References <mailman.0.1435105323.3674.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="22184b02e80198190244f5a2dd813f11"; logging-data="3234"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tJPOWIlXX7AYVuyd/Y/qh"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:vrMjNOenMDF4tVuvmQxxwqblt0s= sha1:3a1T0GQJsLrrvx7XWMolzrSIpVM=
Xref csiph.com comp.lang.python:93056

Show key headers only | View raw


Dan Stromberg <drsalists@gmail.com> writes:
> suppose you have a strange key type that despite being "equal", is
> not identical in some fields

Don't do that.  You were asking for trouble and you got some.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Looking up a dictionary _key_ by key? Dan Stromberg <drsalists@gmail.com> - 2015-06-23 17:21 -0700
  Re: Looking up a dictionary _key_ by key? Paul Rubin <no.email@nospam.invalid> - 2015-06-23 18:02 -0700
  Re: Looking up a dictionary _key_ by key? Steven D'Aprano <steve@pearwood.info> - 2015-06-24 11:49 +1000

csiph-web