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


Groups > comp.lang.python > #104591

Re: a clarification on the "global" statement sought

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: a clarification on the "global" statement sought
Date Fri, 11 Mar 2016 19:29:20 +1100
Lines 12
Message-ID <mailman.3.1457684962.26429.python-list@python.org> (permalink)
References <nbtunf$u4r$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de y4Ct8dlYgAzFtpRaHSXJNADvN1zO6ObhMDWsjYKycxNg==
Return-Path <rosuav@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:skip:c 10': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'assume': 0.11; 'file,': 0.15; '"global"': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply- To:1': 0.24; 'module': 0.25; 'equivalent': 0.27; 'fri,': 0.27; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'statement': 0.32; 'received:google.com': 0.35; 'level': 0.35; 'received:209.85': 0.36; 'subject:" ': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'subject:the': 0.39; 'mar': 0.65; 'smith': 0.76; 'chrisa': 0.84; 'outermost': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=aRrko4FnxT7UbjcwXxIitFePOuwTQA3SxXllHPUs3nU=; b=RJy1go9N6NmHJY5A9yYyVTr7IkRQJCa3+b9+OF6BPVEjwPjiq4H3t1sYKIppkoSovU 7TGOioQ+Vu5zdyW4IFxsbJXO6CG3WQZo9ScTUDIz+FhTK8bQozBfKA7kQAQEqqpXbtuM jmsKCfFrEVhF3SBS7vSpv7vCFndMmcDR6ZS+a1XinkwEyuAaFVsPBXNwwIS5Bk3ENMF5 I7u1WQG9WKTSJtgurByUVVigXUnADbOvovdNwvhQQYaWMeddi+ADELRQmJ+Y3u6KUELW K1BfjXBDjkpXzJcOEtieMOVkmWz63OOWGrEZrNUebQGLwW13K6TdoiMnZo1v2sd+0Qjg SgHA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=aRrko4FnxT7UbjcwXxIitFePOuwTQA3SxXllHPUs3nU=; b=EzCWZe+5tR2FuK5U8l5KMIN4hC0Y07GU+kt9XZ4Q3o1eRLRXKNyBr6yXJjuEGduxtj 9VTgNQUvA6aEyMxvEqDMd00gdOJRKtyq9gqMOvS0nNsZxMmjCD2YUoQ0Ze10/Zsv5uaa xi8tZuJUnKWyxbRVddECKil77PPk1f1i7lC5DzeIrjkINup6PDisCtYzbR6iWxId1GeA 8wxPu/KPnPBq3BKeEkrVT/axJNY4yFoVISdBzac20R15/tMnTHpSfQNW7LSusEhElqxY W7V/HFxQTmCWKhJgMHedrV4XSiw/vQ+oJnedZtbXtEqzVX/smt2gYErsf90/FNgrmkvP KILw==
X-Gm-Message-State AD7BkJJ/lpSGYBTUPj/f8LAWF5DEd8pOL+mcHeBZOhUEtELBl2734HfP+slaoyqi1WZuj+fT5R2tAEuSPFd9lg==
X-Received by 10.50.28.105 with SMTP id a9mr1533445igh.94.1457684960164; Fri, 11 Mar 2016 00:29:20 -0800 (PST)
In-Reply-To <nbtunf$u4r$1@dont-email.me>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
Xref csiph.com comp.lang.python:104591

Show key headers only | View raw


On Fri, Mar 11, 2016 at 7:13 PM, Charles T. Smith
<cts.private.yahoo@gmail.com> wrote:
> When might a "global" statement be used in the outermost level of a module?
>
> (whereby, I assume a module is equivalent to a python file, correct?)
>

Usefully? Never.

Simple question - simple answer :)

ChrisA

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


Thread

a clarification on the "global" statement sought "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 08:13 +0000
  Re: a clarification on the "global" statement sought Chris Angelico <rosuav@gmail.com> - 2016-03-11 19:29 +1100
    Re: a clarification on the "global" statement sought "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 08:53 +0000
      Re: a clarification on the "global" statement sought Peter Otten <__peter__@web.de> - 2016-03-11 10:23 +0100
  Re: a clarification on the "global" statement sought Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-11 08:31 +0000
    Re: a clarification on the "global" statement sought "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 09:09 +0000
      Re: a clarification on the "global" statement sought Chris Angelico <rosuav@gmail.com> - 2016-03-11 20:29 +1100
  Re: a clarification on the "global" statement sought eryk sun <eryksun@gmail.com> - 2016-03-11 03:20 -0600

csiph-web