On Jan 10, 2011, at 7:58 AM, arun kumar wrote:

> how to know that we
> should import something. How do we know that certain classes are in
> particular module?

You know to import a module if you need part of that module. Perhaps you need a 
class or function defined in the module.

There are several ways to see what a module provides. The documentation is 
usually a good place to start. You can also use dir(), e.g. import foo; 
dir(foo).

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to