I don't really understand why __init__.py is necessary -- except that it
makes the packaging scheme work.

The Python Manual by Guido van Rossum and Fred L. Drake says:

... this is done to prevent directories with a common name, such as
string, from unintentionally hiding valid modules that occur later on in
the module search path.

An example would probably set me straight.  Can anyone help with that?

Marilyn Davis

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to