Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95947

Re: Python handles globals badly.

Date 2015-09-03 09:50 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: Python handles globals badly.
References <c3363$547e74fe$5419aafe$24179@news.ziggo.nl> <3bbeafa4-d756-46f8-9750-2fca29617cf4@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.73.1441295457.8327.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Python handles globals badly. tdev@freenet.de - 2015-09-03 06:22 -0700
  Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-04 00:03 +1000
  Re: Python handles globals badly. Michael Torrie <torriem@gmail.com> - 2015-09-03 09:50 -0600
  Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-03 10:15 -0600
  Re: Python handles globals badly. Michael Torrie <torriem@gmail.com> - 2015-09-03 10:43 -0600
    Re: Python handles globals badly. Steven D'Aprano <steve@pearwood.info> - 2015-09-04 12:05 +1000
    Re: Python handles globals badly. pepekbabi5@gmail.com - 2015-09-06 15:35 -0700
  Re: Python handles globals badly. MRAB <python@mrabarnett.plus.com> - 2015-09-03 19:29 +0100
  Re: Python handles globals badly. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-03 18:41 -0400

csiph-web