Red Crow wrote:
> If you want use the class X write this:
>
> from x import * (x if yor archive is x.py and X if your archive is X.py)
This is generally considered bad style. It makes it hard to figure out
where definitions come from in the importing program, and can lead to
surprises where you import more than you intend.
> another form to use your library:
>
> import x (x if yor archive is x.py and X if your archive is X.py)
This is much better. You can also use
from x import X
if you don't want to have to type the module name everywhere you use X.
Kent
|