Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!xlned.com!feeder7.xlned.com!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'infinite': 0.07; 'subject:missing': 0.07; 'python': 0.08; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'am,': 0.12; 'skip:a 120': 0.16; 'subject:Language': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'suggest': 0.20; 'memory': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'frequent': 0.23; 'string': 0.24; 'obviously': 0.25; 'bit': 0.28; "i'm": 0.28; 'correct': 0.29; 'quite': 0.31; 'michael': 0.31; 'does': 0.32; 'that,': 0.32; 'list': 0.32; 'header:User-Agent:1': 0.33; 'test': 0.34; 'header:X -Complaints-To:1': 0.34; 'from:addr:yahoo.co.uk': 0.34; 'integer': 0.34; 'to:addr:python-list': 0.35; 'question': 0.36; 'received:org': 0.36; 'run': 0.37; 'but': 0.37; 'represent': 0.37; 'could': 0.38; 'should': 0.38; 'e.g.': 0.39; "i'd": 0.39; 'received:78': 0.40; 'to:addr:python.org': 0.40; "you've": 0.61; 'matter': 0.62; 'subject:!': 0.66; 'easily.': 0.67; 'soon': 0.72; 'manages': 0.84; 'received:as13285.net': 0.84; 'subject:types': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: PyWart: Language missing maximum constant of numeric types! Date: Sat, 25 Feb 2012 00:35:43 +0000 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-4-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <4F481A5F.4080601@gmail.com> X-Antivirus: avast! (VPS 120224-2, 24/02/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330130154 news.xs4all.nl 6983 [2001:888:2000:d::a6]:51036 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20842 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? I understand that a Python integer can run to infinity. Quite how the illustrious rr manages to test for the length of a string that's already used all of the memory on his system has baffled me, but I'm sure that all the people who frequent this list with their Phds, MScs or whatever will soon correct me. -- Cheers. Mark Lawrence.