[Tutor] Import multiple classes from one module

runsun runsun@bilbo.bio.purdue.edu
Sat, 29 Sep 2001 02:08:14 -0500


I have a module containing several classes, say,
c1, c2, c3.

It seems that I have to import each class one by one like:

from mymodule import c1
from mymodule import c2
from mymodule import c3

What if there are 30 classes in that module that
I wanna import ? Should I make 30 imports or 
there's a better way to do it ?

pan

======================================
      ~~ Be like water, be shapeless ~~
Runsun Pan, PhD, Biological Sci. Purdue Univ
Email: runsun@bilbo.bio.purdue.edu
Url : http://bilbo.bio.purdue.edu/~runsun
Tel : 765-496-4186(H), 765-494-4947 (O)
Fax : 775-665-1494 (USA) 094-656-8001 (Taiwan)
        (I can access both through my email)
======================================