[Tutor] module import problems
Rayon
evosweet at hotmail.com
Mon Apr 26 11:48:14 CEST 2010
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 at 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 at 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 at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
--------------------------------------------------------------------------------
_______________________________________________
Tutor maillist - Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100426/e6368f9d/attachment-0001.html>
More information about the Tutor
mailing list