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!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.085 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.01; 'to)': 0.09; 'cc:addr :python-list': 0.11; '-tkc': 0.16; 'agree.': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'wrote:': 0.18; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'least': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'skip:( 20': 0.30; 'code': 0.31; 'protocols': 0.31; 'maintaining': 0.32; 'johnson': 0.35; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'happen': 0.63; 'to:addr:gmail.com': 0.65; 'sharing': 0.69; 'everything,': 0.84; 'everything.': 0.84; 'received:50.22': 0.84; 'subject:Global': 0.91; 'rick': 0.93 Date: Tue, 12 Nov 2013 05:32:09 -0600 From: Tim Chase To: Rick Johnson Subject: Re: PyMyth: Global variables are evil... WRONG! In-Reply-To: <82561733-d131-45de-ab10-c847f1960dc4@googlegroups.com> References: <7b97786a-2aaf-454c-8c3a-1c19d20d4345@googlegroups.com> <82561733-d131-45de-ab10-c847f1960dc4@googlegroups.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com Cc: python-list@python.org 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384255840 news.xs4all.nl 15922 [2001:888:2000:d::a6]:54096 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59186 On 2013-11-11 20:46, Rick Johnson wrote: > Yes, and i agree. But you cannot "hide" everything. There > will always be a need to share information. You may not be able to (or want to) hide everything, but sharing should at least happen over defined protocols (functions/methods). Otherwise, you wander off into the weeds of hackery and monkey-patching which makes maintaining the code a lot hairier. -tkc