[Tutor] confusion about imports

Chris Hare chare at labr.net
Mon Jul 9 17:56:48 CEST 2012


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 though the Class has been imported, I get a nameError where trying to use the class.  I have read about Classes and packages and modules, but import just has me confused.


More information about the Tutor mailing list