access to submodules

TG girodt at gmail.com
Wed Jul 19 09:26:45 EDT 2006


hi.

This is my first try on modules.

I've got :

tom/
    __init__.py
    core.py
    ui.py
    data.py

then, when I'm in my ipython shell :

?> from tom import *


this works, it loads core, ui and data
but when I do this :


?> import tom

?> tom.core
AttributeError: 'module' object has no attribute 'core'


Well, i guess I missed something, but I don't see what ...




More information about the Python-list mailing list