Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'plenty': 0.07; 'subject:Why': 0.09; 'cc:addr:python-list': 0.11; '"well,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'infinity,': 0.16; 'integer.': 0.16; 'uniquely': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'integer': 0.24; 'cc:2**0': 0.24; 'right.': 0.26; 'header:In- Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'sep': 0.31; 'steven': 0.31; 'maybe': 0.34; "i'd": 0.34; 'info': 0.35; 'except': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'positive': 0.37; 'pm,': 0.38; 'that,': 0.38; 'success.': 0.39; 'more': 0.64; 'different': 0.65; 'hoping': 0.75; '"how': 0.91; 'to:none': 0.92; 'mount': 0.93 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=AIqJfI+/wSDWem5m0FuI1nDM+y5wM2r8L2FXRY22zh0=; b=zbf6fXSD7Bb5a70Tvh3Vsy9NUJ2euPA6T/qpUi9bXioPXp37OCTFRNB5TOP9YBTsDn RcQ5aAHATMKmapgWqpBWh4hcsu4kAt4uESpPVzlboY26NEiPrBHRcUUqupZEyZulCEED QJcnkQJYc2a9YPK/PcncOY12Cf7d12IcTfIsBl5Hot8PNssqc0PP7nBXJTBNzZccPcyK u+JO3MlAtLeuETvB6ykiSWYep8WBUxIvGBOdvpqX75UEbBYknOWvV5owq+TfSU3UGomB tfR+uLprUZQNHQnk6OeJ7tJirYA37I2fKu7UmAstkIAcRoVGAnRXc3lklnGjzbIumSat ePUA== MIME-Version: 1.0 X-Received: by 10.51.17.2 with SMTP id ga2mr9374267igd.2.1411012032371; Wed, 17 Sep 2014 20:47:12 -0700 (PDT) In-Reply-To: <541a51b1$0$29991$c3e8da3$5496439d@news.astraweb.com> References: <06397cb3-8baf-4af1-8152-ff7c3f6ceb62@googlegroups.com> <541a51b1$0$29991$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 18 Sep 2014 13:47:12 +1000 Subject: Re: Why `divmod(float('inf'), 1) == (float('nan'), float('nan'))` From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411012035 news.xs4all.nl 2852 [2001:888:2000:d::a6]:43467 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77996 On Thu, Sep 18, 2014 at 1:29 PM, Steven D'Aprano wrote: > Perhaps you are thinking of the Fundamental Theorem of Arithmetic, which > states that every positive integer except 1 can be uniquely factorized into > a product of one or more primes? > > http://mathworld.wolfram.com/FundamentalTheoremofArithmetic.html > > But that doesn't apply to infinity, which isn't an integer. May have been that, or maybe was something different altogether. I was trying to relocate the info I'd been reading (ages ago), but without success. To be honest, I was hoping someone else would do the "Of course, I know what you mean" part for me :) But it's ended up more like the Goon Show: "How do you intend tipping Mount Everest on its side?" "Well, isn't it obvious?" with no result forthcoming. Sorry for the noise! Infinities are plenty weird, just this one specific weirdness wasn't right. ChrisA