my bad it was a simple error I was calling it form the wrong module thanks
From: Rayon Sent: Monday, April 26, 2010 3:47 AM To: bob gailer ; tutor@python.org Subject: Re: [Tutor] module import problems I have a project folder report_db in that project folder I have to packages _modules and _ tables report_db \ _tables _modules I want to import some functions from _tables to _modules so I can use them in a function in _modules. From: bob gailer Sent: Sunday, April 25, 2010 10:25 PM To: tutor@python.org Subject: Re: [Tutor] module import problems On 4/25/2010 9:56 PM, Rayon wrote: I have a module with the name _table in the same directory I have another by the name of _module I would like to import _table into _module What exactly does that mean? The import statement, when executed, imports a module into the module containing the import statement. And what is the purpose of the following line? from tables.report_db_engine import * -- Bob Gailer 919-636-4239 Chapel Hill NC -------------------------------------------------------------------------------- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -------------------------------------------------------------------------------- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor