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


Groups > comp.lang.python > #11890

Re: Replacement for the shelve module?

From Robert Kern <robert.kern@gmail.com>
Subject Re: Replacement for the shelve module?
Date 2011-08-19 17:24 -0500
Organization The Church of Last Thursday
References <1e35ff5e-785e-41db-a50f-976e6ef60692@h9g2000vbr.googlegroups.com> <4e4ec962$0$29986$c3e8da3$5496439d@news.astraweb.com>
Newsgroups comp.lang.python
Message-ID <mailman.247.1313792673.27778.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Replacement for the shelve module? Forafo San <ppv.grps@gmail.com> - 2011-08-19 08:31 -0700
  Re: Replacement for the shelve module? Ken Watford <kwatford@gmail.com> - 2011-08-19 11:49 -0400
  Re: Replacement for the shelve module? Thomas Jollans <t@jollybox.de> - 2011-08-19 17:54 +0200
    Re: Replacement for the shelve module? Forafo San <ppv.grps@gmail.com> - 2011-08-19 09:21 -0700
  Re: Replacement for the shelve module? Miki Tebeka <miki.tebeka@gmail.com> - 2011-08-19 10:15 -0700
  Re: Replacement for the shelve module? Robert Kern <robert.kern@gmail.com> - 2011-08-19 12:45 -0500
  Re: Replacement for the shelve module? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-20 06:36 +1000
    Re: Replacement for the shelve module? Robert Kern <robert.kern@gmail.com> - 2011-08-19 17:24 -0500
      Re: Replacement for the shelve module? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-20 11:38 +1000
        Re: Replacement for the shelve module? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-08-21 12:37 +1200
          Re: Replacement for the shelve module? Chris Angelico <rosuav@gmail.com> - 2011-08-21 01:54 +0100

csiph-web