[Tutor] about import statement
Max Countryman
maxc at me.com
Mon Jan 10 15:09:46 CET 2011
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).
More information about the Tutor
mailing list