Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.048 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'float': 0.07; 'yeah,': 0.09; '-tkc': 0.16; 'dangerous,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'keys.': 0.16; 'rounding': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'math': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'errors': 0.30; 'keys': 0.31; 'problem': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'dave': 0.60; 'different': 0.65; 'detail.': 0.68; 'received:50.22': 0.84; 'angel': 0.91; 'wanting': 0.93 Date: Thu, 23 Jan 2014 09:41:05 -0600 From: Tim Chase To: python-list@python.org Subject: Re: Initialise dictionary of dictionary In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390491617 news.xs4all.nl 2861 [2001:888:2000:d::a6]:44589 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64619 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