[Tutor] import.... (Joseph Q.)

Kent Johnson kent37 at tds.net
Sat Apr 9 17:23:34 CEST 2005


Joseph Quigley wrote:
> I don't think I have said it already, but I'll say it again just incase 
> :-), I'm new to python. I started Feb. this year.
> 
> import is handy. But my questions are:
> is there a type of unimport or something to unload a module? 

This is not normally needed.

Foo: What's
> it good for?

Foo and Bar are popular names used in examples. They don't mean anything. For example to show how to 
define a function I might write

def foo():
   print 'Hello'

I just use foo to avoid having to think of a meaningful name.

Kent



More information about the Tutor mailing list