Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74211
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <2014@jmunch.dk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:: [': 0.04; 'languages,': 0.04; 'subject:Python': 0.06; 'nasty': 0.07; 'referring': 0.07; 'anders': 0.09; 'things,': 0.09; 'valueerror:': 0.09; 'useful,': 0.14; 'nans': 0.16; 'preserves': 0.16; 'subject:Dev': 0.16; 'subject:object': 0.16; 'tradeoffs': 0.16; 'unequal': 0.16; 'wrote:': 0.18; 'examples': 0.20; '>>>': 0.22; 'example': 0.22; 'to:name:python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'choices': 0.24; 'math': 0.24; "i've": 0.25; 'compare': 0.26; 'header:In-Reply- To:1': 0.27; '"",': 0.31; "d'aprano": 0.31; 'implied': 0.31; 'received:dk': 0.31; 'steven': 0.31; 'file': 0.32; '(most': 0.33; 'useful': 0.36; 'charset:us-ascii': 0.36; 'e.g.': 0.38; 'to:addr :python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'header:Return-path:1': 0.60; 'real': 0.63; 'different': 0.65; 'life': 0.66; 'earn': 0.67; 'yourself': 0.78; 'everything.': 0.84 |
| Date | Tue, 08 Jul 2014 22:10:59 +0200 |
| From | "Anders J. Munch" <2014@jmunch.dk> |
| Organization | . |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| MIME-Version | 1.0 |
| To | "python-list@python.org" <python-list@python.org> |
| Subject | Re: [Python-Dev] == on object tests identity in 3.x |
| References | <53BB2AC7.2060009@gmx.de> <53BB2F25.3020205@gmx.de> <53BB5082.500@btinternet.com> <20140708031202.GF13014@ando> <53BB6D5F.1010800@btinternet.com> <87a98ktjv7.fsf@uwakimon.sk.tsukuba.ac.jp> <CAPTjJmpvyvw81fY899mkuaui2d4u4dXr=2Vtz9z+JusOS=7DkA@mail.gmail.com> <8761j8thf5.fsf@uwakimon.sk.tsukuba.ac.jp> <20140708165745.GJ13014@ando> |
| In-Reply-To | <20140708165745.GJ13014@ando> |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11662.1404850261.18130.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404850261 news.xs4all.nl 2890 [2001:888:2000:d::a6]:32819 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74211 |
Show key headers only | View raw
Steven D'Aprano wrote: > - Dropping reflexivity preserves the useful property that NANs compare > unequal to everything. Please present an example from real life where that turned out useful, and earn yourself a beer! I've only experienced examples to the contrary. > - Keeping reflexivity for NANs would have implied some pretty nasty > things, e.g. if log(-3) == log(-5), then -3 == -5. >>> log(-3) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: math domain error You were perhaps referring to the log functions in C and Fortran, not math.log? The tradeoffs are different in those languages, so choices the IEEE-754 committee made with C and Fortran in mind may be less relevant for Python. regards, Anders
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [Python-Dev] == on object tests identity in 3.x "Anders J. Munch" <2014@jmunch.dk> - 2014-07-08 22:10 +0200
csiph-web