Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.020 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.01; 'from:addr:yahoo.co.uk': 0.04; 'everybody,': 0.07; 'variables': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'python': 0.11; 'language.': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'regardless': 0.24; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'easy,': 0.31; 'problem': 0.35; 'created': 0.35; 'johnson': 0.35; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'christian': 0.38; 'problems': 0.38; 'mine': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'quote': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'break': 0.61; 'world.': 0.61; 'more': 0.64; '"real': 0.84; '1991': 0.84; 'guideline': 0.84; 'received:2': 0.84; 'wrong!': 0.84; 'subject:Global': 0.91; 'rick': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: PyMyth: Global variables are evil... WRONG! Date: Wed, 13 Nov 2013 23:57:57 +0000 References: <7b97786a-2aaf-454c-8c3a-1c19d20d4345@googlegroups.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-2-98-204-160.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384387099 news.xs4all.nl 15982 [2001:888:2000:d::a6]:55547 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59360 On 13/11/2013 23:42, Rhodri James wrote: > On Tue, 12 Nov 2013 02:06:09 -0000, Rick Johnson > wrote: > >> PyMyth: Global variables are evil... WRONG! > > That's not a PyMyth. It's a CompSciMyth, or to be more accurate a good > general Software Engineering guideline regardless of language. Like all > guidelines it can be broken, but people who break it should do so > knowingly, aware that they have created potential problems for themselves. > A quote from a colleage of mine circa 1991 "Real time programming is easy, just make all the data global". There you are everybody, problem solved :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence