Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74342
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'float': 0.07; '===': 0.09; 'global,': 0.09; 'here?': 0.09; 'if,': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'c-level': 0.16; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nans,': 0.16; 'roy': 0.16; 'simpson': 0.16; 'subject:alternative': 0.16; 'subject:based': 0.16; 'temporary,': 0.16; 'utterly': 0.16; 'wary': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'seems': 0.21; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'comparing': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'compared': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'comparison': 0.31; 'probably': 0.32; 'fri,': 0.33; 'something': 0.35; 'objects': 0.35; 'received:google.com': 0.35; 'so,': 0.37; 'anything': 0.39; 'does': 0.39; 'how': 0.40; 'even': 0.60; 'applicable': 0.60; 'tell': 0.60; 'skip:t 30': 0.61; 'kind': 0.63; 'talking': 0.65; 'here': 0.66; 'smith': 0.68; 'jul': 0.74; 'article': 0.77; 'have?': 0.84; 'reliability': 0.84; 'subject:Proposal': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=IGSokFMRfExAocCScCP09cBTWuOUdkI1f5h47zxbbts=; b=iRGlfj0PiMqXhgzj8aUk46gNaoyYlH1Tqm/cMMFrKKWyt6NTQEOFn5hZvTF01AqKww XikKP21S6TQkUgjJkxUaVHd5MEwDlqgI4XyjtTwzF1zoX4zHHkkRpJU3/PyA+iR5T4+a PI3ul1UnBnGR9SwvwqLoV4CZzeWfY1CthNwi2A4ZKOWkN7P33Do8r7O63QDze0rU4JCu 5cdkBFwPzH+6eN0X3quTrHjWBLmYprlthcGjydT0X9MlHOkndV8DmSKtPHgV9stCKScL s0hu26FFi1LO8F5l32sALey2czq2A4O7O/NaXQfk4Turk5D3OZYjZhg8X7fLKTYRGr2J V3dg== |
| MIME-Version | 1.0 |
| X-Received | by 10.221.26.10 with SMTP id rk10mr49399120vcb.0.1405053427982; Thu, 10 Jul 2014 21:37:07 -0700 (PDT) |
| In-Reply-To | <roy-B07C5D.21172810072014@news.panix.com> |
| References | <mailman.11744.1405038048.18130.python-list@python.org> <roy-B07C5D.21172810072014@news.panix.com> |
| Date | Fri, 11 Jul 2014 14:37:07 +1000 |
| Subject | Re: context manager based alternative to Re: Proposal: === and !=== |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.11750.1405053430.18130.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1405053430 news.xs4all.nl 2895 [2001:888:2000:d::a6]:60850 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74342 |
Show key headers only | View raw
On Fri, Jul 11, 2014 at 11:17 AM, Roy Smith <roy@panix.com> wrote: > In article <mailman.11744.1405038048.18130.python-list@python.org>, > Cameron Simpson <cs@zip.com.au> wrote: > >> Q: How many user support people does it take to change a light bulb? >> A: We have an exact copy of the light bulb here and it seems to be >> working fine. Can you tell me what kind of system you have? > > So, what are we talking about here? my_lightbulb == your_lightbulb, or > my_lightbulb === your_lightbulb, or my_lightbulb is your_lightbulb? Or > just sha1(my_lightbulb) == sha1(your_lightbulb)? Probably type(my_lightbulb).__name__ == type(your_lightbulb).__name__, knowing the reliability of support people... I'm a bit wary of anything that makes a global, even if temporary, change to comparisons' behaviours. What happens if, deep in a call tree, something utterly unrelated happens to do a comparison of this nature? Does C-level code have to check this flag before comparing nans, or is this applicable only to the Python float objects and only when compared in Python? Is isnan() still usable? (Consider that x!=x == math.isnan(x) normally.) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
context manager based alternative to Re: Proposal: === and !=== Cameron Simpson <cs@zip.com.au> - 2014-07-11 10:20 +1000
Re: context manager based alternative to Re: Proposal: === and !=== Roy Smith <roy@panix.com> - 2014-07-10 21:17 -0400
Re: context manager based alternative to Re: Proposal: === and !=== Chris Angelico <rosuav@gmail.com> - 2014-07-11 14:37 +1000
csiph-web