Module Names with . (dots)?

activescott activescott at gmail.com
Sun Apr 5 14:41:48 EDT 2009


My understanding is that module names must not have a dot in them. For
example, I tried to create a module like scott.appengine.util.py  and
put misc utility classes in there. However, python gives the error "No
module named scott.appengine.util". No I've read about packages
(http://docs.python.org/tutorial/modules.html#packages), but packages
appear to require a specific directory structure and several package
initialization files just to create a simple module with "pretty" dot
syntax. Am I missing something?



More information about the Python-list mailing list