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


Groups > comp.lang.python > #109865 > unrolled thread

Re: the global keyword:

Started byRandom832 <random832@fastmail.com>
First post2016-06-12 14:47 -0400
Last post2016-06-12 14:47 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-12 14:47 -0400

#109865 — Re: the global keyword:

FromRandom832 <random832@fastmail.com>
Date2016-06-12 14:47 -0400
SubjectRe: the global keyword:
Message-ID<mailman.22.1465757262.2288.python-list@python.org>
On Sat, Jun 11, 2016, at 23:15, Lawrence D’Oliveiro wrote:
> On Sunday, June 12, 2016 at 11:51:11 AM UTC+12, Random832 wrote:
> > Importing a variable from a module copies its value into your own
> > module's variable.
> 
> Every name in Python is a variable, and can be assigned to to change its
> value at any time.

Sure, but that doesn't really help explain this situation, since your
statement doesn't make clear the fact that by importing foo.a into bar
you are really merely assigning to bar.a rather than having continuous
access to foo.a, unlike how importing things works in static languages.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web