Re: [Tutor] Accessing variables from other modules

2018-09-05 Thread Chip Wachob
Alan, Thanks for your comments. I just forwarded a copy of a message to the list that I inadvertently sent as a reply only. So in that message there's information about the code. Thank you for confirming that once the interpreter is finished running my script that all the data is gone. The boa

Re: [Tutor] Accessing variables from other modules

2018-09-04 Thread Alan Gauld via Tutor
On 04/09/18 16:10, Chip Wachob wrote: > (like I would do in C). I then used the import statement to 'include' > them into the main.py file. OK a basically good idea but how did you use the import statement? There are many forms: import foo from foo import name1, name2,... from foo import * impo

Re: [Tutor] Accessing variables from other modules

2018-09-04 Thread Steven D'Aprano
Hi Chip, and welcome! On Tue, Sep 04, 2018 at 11:10:36AM -0400, Chip Wachob wrote: > I'll refrain from posting a bunch of code, but here is the 5000 foot view: Not posting a mountain of code is a great idea, but from 5000 ft away we can't see what is going on. Try posting *a little bit of code