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


Groups > comp.lang.python > #64619

Re: Initialise dictionary of dictionary

Date 2014-01-23 09:41 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: Initialise dictionary of dictionary
References <f2f630c9-434c-43c1-bd80-4fadcc552e0a@googlegroups.com> <lbrckm$75b$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.5896.1390491617.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-01-23 10:34, Dave Angel wrote:
> Unsure of what the floats have to do with it. Perhaps you meant
>  float KEYS. 

using floats for keys can be dangerous, as small rounding errors in
math can produce keys different enough that they're not found by an
exact-match lookup.  But yeah, the original problem specification was
rather wanting in detail.  I tried my best at interpreting it, for
whatever that may be worth.

-tkc


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


Thread

Initialise dictionary of dictionary Ayushi Dalmia <ayushidalmia2604@gmail.com> - 2014-01-23 07:15 -0800
  Re: Initialise dictionary of dictionary Tim Chase <python.list@tim.thechases.com> - 2014-01-23 09:30 -0600
    Re: Initialise dictionary of dictionary Ayushi Dalmia <ayushidalmia2604@gmail.com> - 2014-01-23 21:42 -0800
  Re:Initialise dictionary of dictionary Dave Angel <davea@davea.name> - 2014-01-23 10:34 -0500
  Re: Initialise dictionary of dictionary Tim Chase <python.list@tim.thechases.com> - 2014-01-23 09:41 -0600

csiph-web