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


Groups > comp.lang.python > #95955

Re: Python handles globals badly.

Path csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'classes,': 0.05; 'compiler': 0.05; 'badly': 0.07; 'globals': 0.09; 'topic:': 0.09; 'thread': 0.10; 'languages,': 0.15; 'languages.': 0.15; 'thu,': 0.15; '"global"': 0.16; 'disclaiming': 0.16; 'magic': 0.16; 'thread.': 0.16; 'view)': 0.16; 'wrote:': 0.16; '(in': 0.18; '2015': 0.20; 'java': 0.22; 'meant': 0.22; 'so.': 0.22; 'either.': 0.22; 'referring': 0.22; 'sep': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'message-id:@mail.gmail.com': 0.27; 'comparison': 0.29; 'starts': 0.29; 'comments': 0.30; 'that.': 0.30; 'guess': 0.31; 'post': 0.31; 'topic': 0.32; 'point': 0.33; 'throughout': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'but': 0.36; '(and': 0.36; 'keyword': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'expect': 0.37; 'suggestion': 0.37; 'whom': 0.37; 'seem': 0.37; "won't": 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'your': 0.60; 'yes': 0.62; 'more': 0.63; 'sharing': 0.64; 'between': 0.65; 'here': 0.66; 'talking': 0.67; 'therefore': 0.67; 'outsourcing': 0.81; 'about,': 0.84; 'distinguish': 0.84; 'locals': 0.84; 'to:name:python': 0.84; 'proposal,': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AWbliqr1bhTIYypNyhlPj/8+O3N26btodU5xMBTHOVU=; b=uXtqe1almuCpJ4DD4cKgtj3FookAbpt2R867eJ1n40nKh18ZrhZmXlQ1coo4vBGxIV +Xka86exbtkoaLScn0/6Az3RcUJJNBxtO8CiDVsfPi/c689S26zrvK1c8CZO/bVcIGSJ TMKotggWCIYV0eNN4oD/o7cOux1jwKmGFUiiKlNZKJg932i8OTwDq7wBLw8gXOzJNf2K wQNhVjcQy/CQrYmh6hiEv/CLH483K78a6vQ3AM3oszjFhe3hMRqMLkIR+xtveFH45685 9ro8hxqvG0XVIBWys3vs5ejYjA5605oOSg73AfiDsgbIYkuPwRSzOezUDUziZhgNWl7+ bLfA==
X-Received by 10.129.31.135 with SMTP id f129mr41355524ywf.85.1441296968738; Thu, 03 Sep 2015 09:16:08 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <3bbeafa4-d756-46f8-9750-2fca29617cf4@googlegroups.com>
References <c3363$547e74fe$5419aafe$24179@news.ziggo.nl> <3bbeafa4-d756-46f8-9750-2fca29617cf4@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 3 Sep 2015 10:15:28 -0600
Subject Re: Python handles globals badly.
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.82.1441296971.8327.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441296971 news.xs4all.nl 23758 [2001:888:2000:d::a6]:33011
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95955

Show key headers only | View raw


On Thu, Sep 3, 2015 at 7:22 AM,  <tdev@freenet.de> wrote:
> I think this has lead to some confusing.

I don't think so.

> 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.
> And yes I agree globals can be bad design
> and it is solved via outsourcing to an extra module and used via imports.
>
> I misinterpreted this topic a little by thinking
> the focus is more about the use of the badly "global" keyword
> (in my point of view) and added therefore my post here as

The only person whom I see talking about this in this thread is you
disclaiming that you're not talking about it. (And I guess Skybuck is
talking about it, but I don't see those.)

> Said that, I will not respond to comments about sharing globals

> Said that, I will not respond to comments about using OO
or about comparisons made with other languages.

I don't know what comments about using OO you're referring to either.
I only see one suggestion to use classes, and you've already responded
to that. As far as comparisons to other languages, you're the one who
brought up the comparison to Java in the first place.

You seem to be spending a lot of time talking about what you won't
talk about, and very little time talking about your proposal, such as
by what magic you expect the compiler to distinguish globals from
locals without declarations.

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