[Tutor] module import problems

Rayon evosweet at hotmail.com
Mon Apr 26 09:47:44 CEST 2010

I have a project folder  report_db in that project folder I have to  packages 
_modules and _ tables

report_db   \
  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
Chapel Hill NC


Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100426/0f1aa8cf/attachment.html>

More information about the Tutor mailing list