Re: [Tutor] confusion about imports

2012-07-10 Thread Mark Lawrence
On 10/07/2012 03:04, Steven D'Aprano wrote: Mark Lawrence wrote: On 09/07/2012 16:56, Chris Hare wrote: So, I have to admit, imports have me really confused. I am trying to break apart a 10,000+ line single file into various files Please don't break the file up for the sake of doing it, you

Re: [Tutor] confusion about imports

2012-07-09 Thread Steven D'Aprano
Mark Lawrence wrote: On 09/07/2012 16:56, Chris Hare wrote: So, I have to admit, imports have me really confused. I am trying to break apart a 10,000+ line single file into various files Please don't break the file up for the sake of doing it, you're writing python not java :-) Agreed, b

Re: [Tutor] confusion about imports

2012-07-09 Thread Chris Hare
Good advice - thanks for that. And I think you're right - I think what is happening is in fact a bunch of circular references. As I resolve issues, I will be looking for those! Appreciate all the advice! On Jul 9, 2012, at 5:16 PM, Dave Angel wrote: > On 07/09/2012 11:56 AM, Chris Hare wrote

Re: [Tutor] confusion about imports

2012-07-09 Thread Dave Angel
On 07/09/2012 11:56 AM, Chris Hare wrote: > So, I have to admit, imports have me really confused. I am trying to break > apart a 10,000+ line single file into various files, one for each class, and > one containing a whole bunch of functions which are used by a lot of classes. > Some of those

Re: [Tutor] confusion about imports

2012-07-09 Thread David Rock
* Chris Hare [2012-07-09 13:33]: > import functions > import os > import db > > when everything was all in one file, that worked just fine. Now, with it all > split up, once I changed > > r = DbPath() > > to > > r = functions.DbPath() > > things seems to work now. I hope this is it!!! >

Re: [Tutor] confusion about imports

2012-07-09 Thread Chris Hare
On Jul 9, 2012, at 12:42 PM, Walter Prins wrote: > Hi Chris > >> So, I have to admit, imports have me really confused. I am trying to break >> apart a 10,000+ line single file into various files, one for each class, and >> one containing a whole bunch of functions which are used by a lot of

Re: [Tutor] confusion about imports

2012-07-09 Thread Mark Lawrence
On 09/07/2012 16:56, Chris Hare wrote: So, I have to admit, imports have me really confused. I am trying to break apart a 10,000+ line single file into various files, one for each class, and one containing a whole bunch of functions which are used by a lot of classes. Some of those function

Re: [Tutor] confusion about imports

2012-07-09 Thread Walter Prins
Hi Chris > So, I have to admit, imports have me really confused. I am trying to break > apart a 10,000+ line single file into various files, one for each class, and > one containing a whole bunch of functions which are used by a lot of classes. > Some of those functions use calls to methods i

Re: [Tutor] confusion about imports

2012-07-09 Thread Joel Goldstick
On Mon, Jul 9, 2012 at 11:56 AM, Chris Hare wrote: > > So, I have to admit, imports have me really confused. I am trying to break > apart a 10,000+ line single file into various files, one for each class, and > one containing a whole bunch of functions which are used by a lot of classes. > So

[Tutor] confusion about imports

2012-07-09 Thread Chris Hare
So, I have to admit, imports have me really confused. I am trying to break apart a 10,000+ line single file into various files, one for each class, and one containing a whole bunch of functions which are used by a lot of classes. Some of those functions use calls to methods in a Class. Even