Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'infinite': 0.07; 'subject:missing': 0.07; 'from:addr:python': 0.09; 'lawrence': 0.09; 'am,': 0.12; 'arbitrarily': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'positive,': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'reply-to:addr:python-list': 0.16; 'singleton': 0.16; 'skip:a 120': 0.16; 'subject:Language': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'int': 0.18; 'suggest': 0.20; 'memory': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'string': 0.24; 'obviously': 0.25; 'bit': 0.28; "i'm": 0.28; 'quite': 0.31; 'michael': 0.31; 'does': 0.32; 'that,': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'received:84': 0.34; 'integer': 0.34; 'reply-to:addr:python.org': 0.34; 'to:addr :python-list': 0.35; 'question': 0.36; 'but': 0.37; 'represent': 0.37; 'could': 0.38; 'should': 0.38; 'e.g.': 0.39; "i'd": 0.39; 'to:addr:python.org': 0.40; "you've": 0.61; 'matter': 0.62; 'subject:!': 0.66; 'special': 0.66; 'easily.': 0.67; 'header :Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; 'subject:types': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=ZvRv2qHG c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=qePWxsfFzlIA:10 a=vtgoN0PlrdMA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=aLnLOTqEXaawe3cfAxsA:9 a=m42-CjrB7qePt0mqNb8A:7 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Sat, 25 Feb 2012 00:37:58 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: PyWart: Language missing maximum constant of numeric types! References: <8c2096d9-3cc2-4b64-8f11-c1d958d94243@x19g2000yqh.googlegroups.com> <3bdf4796-3a45-43db-8575-d4ba819a8229@f4g2000yqh.googlegroups.com> <4F47B96C.80707@gmail.com> <4F481A5F.4080601@gmail.com> In-Reply-To: <4F481A5F.4080601@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: python-list@python.org 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330130287 news.xs4all.nl 6932 [2001:888:2000:d::a6]:52370 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20843 On 24/02/2012 23:16, Michael Torrie wrote: > On 02/24/2012 09:59 AM, Mark Lawrence wrote: >> The C integer bit doesn't matter since e.g. >> >>> >> a=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 >> >>> a >> 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000L >> >> And no, I'm not going to calculate how much memory I'd need to store a >> string that's this long :) > > Sure but that doesn't answer the question posed. How does Rick plan to > represent an infinite integer? Obviously you've shown that with an > infinite amount of memory we could do it quite easily. But baring that, > how does Rick suggest we should represent an infinite integer? We already have arbitrarily long ints, so there could be a special infinite int singleton (actually, 2 of them, one positive, the other negative).