WG: [Tutor] Import multiple classes from one module

Reto M. Kiefer reto@codedculture.com
Sat, 29 Sep 2001 13:26:51 +0200


> 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 ?

The way :

from mymodule import *

doesn't work?

HTH and CU,

Reto

--
Reto M. Kiefer | New Media Solutions
Email:  reto@codedculture.com
Web:    http://www.codedculture.com