[Tutor] module import problems

bob gailer bgailer at gmail.com
Mon Apr 26 04:25:53 CEST 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100425/0a26534f/attachment.html>


More information about the Tutor mailing list