Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83391
| Path | csiph.com!usenet.pasdenom.info!news.franciliens.net!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.036 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'imports': 0.16; 'inf': 0.16; 'nan': 0.16; 'subject:where': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; "we're": 0.32; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'ian': 0.60; 'worry': 0.60; '2015': 0.84; '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=Z24jFINpUpO9q8yl6ArQqIN9QVRgsRR6Kx+F8xVFH/E=; b=XgstQrQkXq9gPJhUiS9eHUZbn/WgIEfDQEGNfs/fFcb9xMsG3lIuXRIyGoR0tQqRj5 9k8FTlfehwSbH1itX0jiHWSl/MdqzvkRLSR85NC8C5cWzPV0Y+lu/C+rLu9vRlwVzsHU cAp86/Wjzj7Kutt3k55j7+++R3leichbodtFtE9IqaGpPz9Nakr4e4Zk3stca5NgiNUA F0VYFet+Jx2QvgZnxgg1EvG7nyRVQ5VrsIFBiCp6tYEM5IReSmo6rtzETRu63coJwXN/ SMfCEYOfoyNictfVAsxd1XsEUtxtxHqozl5k7WfcCoO21Nuwq3MbfkjEcR4pkPg0Uzlx C0gQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.134.39 with SMTP id i39mr12438668iod.53.1420770342099; Thu, 08 Jan 2015 18:25:42 -0800 (PST) |
| In-Reply-To | <CALwzidm1kp6yXi_p_4r1WemhxR+=j5gLEHPt07B6M55qcEL4KA@mail.gmail.com> |
| References | <m8m3et$1gu$2@speranza.aioe.org> <mailman.17472.1420727095.18130.python-list@python.org> <87zj9te3tz.fsf@elektro.pacujo.net> <qotk30xjpib.fsf@ruuvi.it.helsinki.fi> <mailman.17477.1420729115.18130.python-list@python.org> <54af32f4$0$12990$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmoN+PWTTYkc_DaADgwAeVc9QVSK8S1sJn9O28ugrDYExA@mail.gmail.com> <CALwzidm1kp6yXi_p_4r1WemhxR+=j5gLEHPt07B6M55qcEL4KA@mail.gmail.com> |
| Date | Fri, 9 Jan 2015 13:25:42 +1100 |
| Subject | Re: where in Nan defined |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | Python <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.17495.1420770350.18130.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420770350 news.xs4all.nl 2833 [2001:888:2000:d::a6]:34881 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83391 |
Show key headers only | View raw
On Fri, Jan 9, 2015 at 1:12 PM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> Or to never have to worry about it:
>
> INF = 1e400
> while not math.isinf(INF):
> INF *= INF
With no imports whatsoever:
inf = 1e400
nan = inf-inf
while nan == nan:
inf *= inf
nan = inf-inf
But now we're getting stupid :)
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
where in Nan defined maurog <qualsivoglia@dovetipare.nz> - 2015-01-08 14:15 +0000
Re: where in Nan defined Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-08 07:24 -0700
Re: where in Nan defined Marko Rauhamaa <marko@pacujo.net> - 2015-01-08 16:37 +0200
Re: where in Nan defined Chris Angelico <rosuav@gmail.com> - 2015-01-09 01:45 +1100
Re: where in Nan defined Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-01-08 16:55 +0200
Re: where in Nan defined Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-01-08 16:50 +0200
Re: where in Nan defined Chris Angelico <rosuav@gmail.com> - 2015-01-09 01:58 +1100
Re: where in Nan defined Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 12:46 +1100
Re: where in Nan defined Chris Angelico <rosuav@gmail.com> - 2015-01-09 13:07 +1100
Re: where in Nan defined Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-08 19:12 -0700
Re: where in Nan defined Chris Angelico <rosuav@gmail.com> - 2015-01-09 13:25 +1100
Re: where in Nan defined Chris Angelico <rosuav@gmail.com> - 2015-01-09 01:28 +1100
csiph-web