why have to "from compiler import *"

Duncan Booth duncan.booth at invalid.invalid
Tue Sep 5 13:31:30 CEST 2006


"Paddy" <paddy3118 at netscape.net> wrote:

> 
>  import module1
>  # namespace becomes:
>    \-------------------------/
>   |module1.moduleFunc1     |
>   |module1.moduleClass1:   |
>   |  class1Method1         |
>   |  class1Method2         |
>   |module1.moduleFunc2     |
>   |module1.moduleVar1      |
>   |module1.moduleVar2      |
>    /------------------------\

It would be more accurate to say:
 # namespace becomes
   \-----------------/
   |module1          |
   |                 |
   /-----------------\



More information about the Python-list mailing list