Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:module': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'underlying': 0.09; '(either': 0.16; 'enigma': 0.16; 'kern': 0.16; 'received:austin.res.rr.com': 0.16; 'wrote:': 0.16; 'purposes,': 0.18; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; 'pm,': 0.24; 'interpret': 0.29; 'fixed': 0.29; 'collecting': 0.31; 'subject:?': 0.31; 'to:addr:python-list': 0.33; 'header:User- Agent:1': 0.34; 'latter': 0.34; 'header:X-Complaints-To:1': 0.35; 'doing': 0.36; 'but': 0.37; 'received:org': 0.38; 'steven': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'received:rr.com': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'world': 0.62; 'our': 0.63; 'believe': 0.65; 'ever': 0.65; 'currency,': 0.84; 'prices,': 0.84; 'subject:Replacement': 0.84; 'eco': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: Replacement for the shelve module? Date: Fri, 19 Aug 2011 17:24:15 -0500 Organization: The Church of Last Thursday References: <1e35ff5e-785e-41db-a50f-976e6ef60692@h9g2000vbr.googlegroups.com> <4e4ec962$0$29986$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: cpe-70-113-40-77.austin.res.rr.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <4e4ec962$0$29986$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313792673 news.xs4all.nl 23945 [2001:888:2000:d::a6]:55115 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11890 On 8/19/11 3:36 PM, Steven D'Aprano wrote: > By the way, you know that you should never, ever use floats for currency, > right? That's just incorrect. You shouldn't use (binary) floats for many *accounting* purposes, but for many financial/econometric analyses, floats are de rigeur and work much better than decimals (either floating or fixed point). If you are collecting gigs of stock prices, you are much more likely to be doing the latter than the former. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco