Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95389
| References | <D1F29B20.10D53E%Dwight@GoldWinde.com> |
|---|---|
| Date | 2015-08-15 16:56 +1000 |
| Subject | Re: Global command doesn't seem to work... |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.23.1439621775.4764.python-list@python.org> (permalink) |
On Thu, Aug 13, 2015 at 9:06 PM, Dwight GoldWinde <Dwight@goldwinde.com> wrote: > global subwordsDL > from Functions import subwords > subwords () > print (subwordsDL) > print (subwordsDL['enjoy'][2]) In Python, "global" means module-level. The easiest way to do this would be to import the Functions module directly (rather than using a from-import), and then you can use Function.subwords and Functions.subwordsDL. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Global command doesn't seem to work... Chris Angelico <rosuav@gmail.com> - 2015-08-15 16:56 +1000
csiph-web