access to submodules
TG
girodt at gmail.com
Wed Jul 19 10:05:58 EDT 2006
I know this is a bad habit ... I was just doing it to show what is
disturbing me.
Obviously the "star" syntax finds the submodules because they are
loaded, but when I properly load the module alone with "import tom",
the "dot" syntax does not find "tom.core".
BartlebyScrivener wrote:
> >> > from tom import *
>
> You CAN do this, but it's a bad habit.
>
> Try:
>
> >>import tom
>
> Then call by tom.function()
>
> rd
More information about the Python-list
mailing list