Path: csiph.com!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'globals': 0.09; 'topic:': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'globals.': 0.16; 'thread.': 0.16; 'wrote:': 0.16; 'meant': 0.22; 'am,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'starts': 0.29; 'topic': 0.32; 'third': 0.33; 'message-id:@gmail.com': 0.34; 'throughout': 0.34; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'why': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'charset:windows-1252': 0.62; 'between': 0.65 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Thu, 03 Sep 2015 09:50:46 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python handles globals badly. References: <3bbeafa4-d756-46f8-9750-2fca29617cf4@googlegroups.com> In-Reply-To: <3bbeafa4-d756-46f8-9750-2fca29617cf4@googlegroups.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441295457 news.xs4all.nl 23738 [2001:888:2000:d::a6]:59613 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95947 On 09/03/2015 07:22 AM, tdev@freenet.de wrote: > First topic: > "sharing globals between modules" > Where globals is meant as vars used throughout the app. > > This is the topic why Skybuck starts the thread. The answer to this is simple and elegant. Use a third module to store globals. Each module that needs it can simply import it.