Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ascii': 0.09; 'assuming': 0.09; 'function,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'variables.': 0.09; 'wrong,': 0.09; 'python': 0.11; "wouldn't": 0.14; 'digits)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'underscore.': 0.16; 'wrote:': 0.18; '(the': 0.22; 'header:User- Agent:1': 0.23; 'mind.': 0.24; 'looks': 0.24; 'long,': 0.26; 'least': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; '[1]': 0.29; 'am,': 0.29; 'character': 0.29; 'characters': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'probably': 0.32; 'but': 0.35; "i'll": 0.36; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'length': 0.61; 'more': 0.64; 'million': 0.74; '180': 0.84; "it'd": 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Default scope of variables Date: Thu, 04 Jul 2013 03:06:25 -0400 References: <51d4eb9c$0$29999$c3e8da3$5496439d@news.astraweb.com> <51d508ed$0$6512$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.34 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 In-Reply-To: <51d508ed$0$6512$c3e8da3$5496439d@news.astraweb.com> 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372924504 news.xs4all.nl 15982 [2001:888:2000:d::a6]:54868 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49822 On 07/04/2013 01:32 AM, Steven D'Aprano wrote: > > > Well, if I ever have more than 63,000,000 variables[1] in a function, > I'll keep that in mind. > > > [1] Based on empirical evidence that Python supports names with length at > least up to one million characters long, and assuming that each character > can be an ASCII letter, digit or underscore. > Well, the number wouldn't be 63,000,000. Rather it'd be 63**1000000 I probably have it wrong, but I think that looks like: 859,122,207,646,748,720,415,212,786,780,258,721,683,540,870,960,267,706,738,947,655,539,422,295,787,680,882,091,181,482,626,114,653,152,637,456,091,641,990,601,474,111,018,521,295,858,424,750,289,461,372,414,431,396,326,232,796,267,104,001 variables. (The number has 180 digits) -- DaveA