Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #110317
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Random832 <random832@fastmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Is signed zero always available? |
| Date | Wed, 22 Jun 2016 10:34:48 -0400 |
| Lines | 10 |
| Message-ID | <mailman.39.1466606092.11516.python-list@python.org> (permalink) |
| References | <576a925f$0$1597$c3e8da3$5496439d@news.astraweb.com> <nke6pk$fjm$1@ger.gmane.org> <1466606088.4117582.645299713.03DA7658@webmail.messagingengine.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de y8f0vdSZynynVHStPEMcLAAUKv1gyVaHN3AihVSHxJEQ== |
| Return-Path | <random832@fastmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; '22,': 0.09; 'integers': 0.09; 'received:internal': 0.09; 'reliably': 0.09; 'python': 0.10; 'wed,': 0.15; 'distinction': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'received:psf.io': 0.16; 'trap': 0.16; 'wrote:': 0.16; 'detect': 0.18; 'header:In- Reply-To:1': 0.24; 'signed': 0.24; 'supported': 0.27; 'define': 0.27; 'int': 0.33; 'instance': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'seem': 0.37; 'received:66': 0.38; 'version': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'back': 0.62; 'guaranteed': 0.67; 'subject:available': 0.79; 'subject:always': 0.84; 'edwards': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=yArZKQWcaIgXB51cBdy+D7NexjY=; b=TOICE6 ipd0EbSLUrLxxIpmPx0HV/DUyOhGtg0Vwku6AupZTGVj4ZndhUseTgWFJ6jFBFzS rUyil1rDcoa3QOZI4DzNo/1pV5qxSTVxYFdbEo5HV3URQZvCIVrLJrxwuA3+Bw8V r29vdljeG0J2MUEBr9MJ8YZ+xPN8z4IJQ5W3M= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=yArZKQWcaIgXB51 cBdy+D7NexjY=; b=ZYPp3Xsb+qahapYUWp9HcW/tJ2dr7VAi/drMEldUMJh7n8O 5x7Ttuho/MTIHHIoinGoObbDDVPAjwI6UNwrCfNTqW6BYvaQm7/Z6SFXMIvsS5lS d5beFfYZ9Uxof8hUAdm3B6YwWHSWQCoDsfKfVaBaq1z+iTKDWd/HKdrK6wVA= |
| X-Sasl-Enc | cJrsesDM8w4XyMmyL33AKeEzGThQhzH5v1wWUugJnYhe 1466606088 |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-9635f794 |
| In-Reply-To | <nke6pk$fjm$1@ger.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| 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> |
| X-Mailman-Original-Message-ID | <1466606088.4117582.645299713.03DA7658@webmail.messagingengine.com> |
| X-Mailman-Original-References | <576a925f$0$1597$c3e8da3$5496439d@news.astraweb.com> <nke6pk$fjm$1@ger.gmane.org> |
| Xref | csiph.com comp.lang.python:110317 |
Show key headers only | View raw
On Wed, Jun 22, 2016, at 10:19, Grant Edwards wrote: > Is that guaranteed by Python, or just a side-effect of the > implementation? Back in the days when Python used native C integers I > think the latter. AIUI, native C integers have never reliably supported signed zero even with representations that naively seem to have it. There's no well-defined way to detect it - no int version of copysign, for instance - and implementations are free to erase the distinction on every load/store or define one of them to be a trap representation.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is signed zero always available? Steven D'Aprano <steve@pearwood.info> - 2016-06-22 23:27 +1000
Re: Is signed zero always available? Grant Edwards <grant.b.edwards@gmail.com> - 2016-06-22 14:19 +0000
Re: Is signed zero always available? Random832 <random832@fastmail.com> - 2016-06-22 10:34 -0400
Re: Is signed zero always available? Grant Edwards <grant.b.edwards@gmail.com> - 2016-06-22 14:59 +0000
Re: Is signed zero always available? Christopher Reimer <christopher_reimer@icloud.com> - 2016-06-22 15:50 -0700
Re: Is signed zero always available? Steven D'Aprano <steve@pearwood.info> - 2016-06-23 11:16 +1000
Re: Is signed zero always available? Michael Selik <michael.selik@gmail.com> - 2016-06-23 00:34 +0000
Re: Is signed zero always available? Grant Edwards <grant.b.edwards@gmail.com> - 2016-06-23 02:48 +0000
csiph-web