help

Alex Martelli aleaxit at yahoo.com
Tue Oct 24 07:04:37 EDT 2000


"Zishan Rahman" <rahman at cpsc.ucalgary.ca> wrote in message
news:mailman.972353774.18319.python-list at python.org...
> hi there
> i was wondering how do export and import in python

I'm not sure what you mean by "export and import in python".
A Python module exports all of its top-level definitions
(unless named with leading underscores), and imports definitions
from other modules with the import or from statements.

> and can i program
> non-interactively like we do in c or c++

Sure, just run 'python c:/whatever/afile.py' from the
command prompt (in either Unix or Windows), or other
ways yet.


Alex







More information about the Python-list mailing list