Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; 'variables': 0.07; 'extends': 0.09; 'yeah,': 0.09; '"global"': 0.16; 'accesses': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'globals.': 0.16; 'all.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'module': 0.19; 'thu,': 0.19; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'code': 0.31; 'supposed': 0.32; 'running': 0.33; 'johnson': 0.35; 'york': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'keyword': 0.36; 'level': 0.37; 'server': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'new': 0.61; 'different.': 0.84; 'hardly': 0.84; 'subject:Global': 0.91; 'rick': 0.93; '2013': 0.98 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:to :content-type; bh=9hmJmdYcHh+Q76gYIyS8dYy13YeRdD7ZFjaYPKWWfOI=; b=0yB6mzYAyIX/2b3siCQkEeplv1mA3yB+7nWTQuQDYThdSN7oFhnToMFnZkm+2M19XT uiASyLcu72RRYt477Yt2zawqqRH5FJKQBpy9IjT8iMU54DY0vPX1JaWbUhLwNDrnztv4 q1tesjceE9yfDY65bGwv02OAAN85BBW5r8n5koRt/5HzZ9emfTcdAfsoUSrbODo8NY0z LxK8cwX2/j+SrNz+sd7HUtJqmjFFMrfS6KbPhxX8e69Ht28l4EJl+MPbbJIMSArQyR8w MZjUZ+icRjHNaRbOkHkvHm27aAxrMtuJebwxbNjeko14R3E6OcsIexP5Ms8oBbSZfTyg 62eA== MIME-Version: 1.0 X-Received: by 10.68.225.9 with SMTP id rg9mr44986656pbc.122.1384399781732; Wed, 13 Nov 2013 19:29:41 -0800 (PST) In-Reply-To: <5335444a-09e5-4908-87d8-8bfa4c4a05a8@googlegroups.com> References: <7b97786a-2aaf-454c-8c3a-1c19d20d4345@googlegroups.com> <528422d6$0$29975$c3e8da3$5496439d@news.astraweb.com> <5335444a-09e5-4908-87d8-8bfa4c4a05a8@googlegroups.com> Date: Thu, 14 Nov 2013 14:29:41 +1100 Subject: Re: PyMyth: Global variables are evil... WRONG! From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384399784 news.xs4all.nl 15961 [2001:888:2000:d::a6]:51303 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59402 On Thu, Nov 14, 2013 at 2:22 PM, Rick Johnson wrote: > Yeah, a "global" keyword that extends access ONLY as far as > module level scope -- hardly a *true* global. I have yet to see any language that gives true globals. At very best, they're just process-wide! Honestly. How am I supposed to write code that accesses variables running on my New York server? Now, of course, if I had a server on Mars, that would be completely different. They're only globals, after all. ChrisA