why have to "from compiler import *"

Paddy paddy3118 at netscape.net
Tue Sep 5 19:27:10 CEST 2006


Duncan Booth wrote:
> "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          |
>    |                 |
>    /-----------------\

Possibly, although I purposely wanted to give a flavour of how things
might be accessed.

- Paddy




More information about the Python-list mailing list