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


Groups > comp.lang.python > #87775

Re: Deep comparison of dicts - cmp() versus ==?

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Deep comparison of dicts - cmp() versus ==?
Date 2015-03-20 08:49 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-8EE6A8.08485420032015@news.panix.com> (permalink)
References (2 earlier) <817c8567-1dbb-436c-8a1f-86446e30d12d@googlegroups.com> <f95ad316-cf77-42e6-b549-ccd185c3fbca@googlegroups.com> <mailman.33.1426822502.10327.python-list@python.org> <d6e3083d-881e-4c6d-b69c-c738b3e59f64@googlegroups.com> <550bbfc1$0$13010$c3e8da3$5496439d@news.astraweb.com>

Show all headers | View raw


In article <550bbfc1$0$13010$c3e8da3$5496439d@news.astraweb.com>,
 Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:

> I cannot remember the details, and I don't have my copy of the Apple 
> Standard Numerics manual here to look it up

Amongst the details you don't remember is the correct name :-)  It was 
Standard Apple Numerics Environment (SANE).  I think I still have my 
copy of the manual somewhere.

> If you find that hard to believe, it's because you're spoiled by the 
> astonishing success of IEEE-754 floating point arithmetic.

There's two things we're spoiled by.  IEEE-754 is, of course, one of 
them.  But, more than that, are good math libraries built on top of it.

One of the truly unappreciated things to come out of the early BSD Unix 
releases was a C math library written by people who understood (and 
worried about) things like accurate FP calculations, rounding, corner 
cases, and all that gunk.  Sure, I could sit down with a C compiler and 
the Wikipedia Gamma function article and code up gamma().  It would work 
well enough to get a decent grade as a homework assignment for 
Introduction To Programming 101.  But, fundamentally, it would be a 
piece of crap because I know just enough about numerical programming to 
know that I should leave it to the experts.

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


Thread

Deep comparison of dicts - cmp() versus ==? Victor Hooi <victorhooi@gmail.com> - 2015-03-19 19:00 -0700
  Re: Deep comparison of dicts - cmp() versus ==? Ben Finney <ben+python@benfinney.id.au> - 2015-03-20 13:33 +1100
    Re: Deep comparison of dicts - cmp() versus ==? Victor Hooi <victorhooi@gmail.com> - 2015-03-19 19:57 -0700
      Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-19 20:27 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 14:34 +1100
          Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-19 20:47 -0700
            Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 15:35 +1100
            Re: Deep comparison of dicts - cmp() versus ==? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-20 17:35 +1100
              Re: Deep comparison of dicts - cmp() versus ==? Roy Smith <roy@panix.com> - 2015-03-20 08:49 -0400
              Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-20 06:46 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Ben Finney <ben+python@benfinney.id.au> - 2015-03-20 16:09 +1100
          Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-20 06:35 -0700
            Re: Deep comparison of dicts - cmp() versus ==? Marko Rauhamaa <marko@pacujo.net> - 2015-03-20 16:10 +0200
              OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Rustom Mody <rustompmody@gmail.com> - 2015-03-20 23:01 -0700
                Re: OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Marko Rauhamaa <marko@pacujo.net> - 2015-03-21 08:28 +0200
                Re: OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Rustom Mody <rustompmody@gmail.com> - 2015-03-31 20:53 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 16:27 +1100

csiph-web