Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109865
| From | Random832 <random832@fastmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: the global keyword: |
| Date | 2016-06-12 14:47 -0400 |
| Message-ID | <mailman.22.1465757262.2288.python-list@python.org> (permalink) |
| References | <1465757260.2765216.635400889.237B0FEB@webmail.messagingengine.com> |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-12 14:47 -0400
csiph-web