Re: What do you use __init__.py for?

2006-04-27 Thread alisonken1
[EMAIL PROTECTED] wrote: > But what other uses does the '__init__.py' script have? What do you > use it for? __init__.py is used for initialization of the package - similar to __init__() in a function or class declaration. One example would be if you create a package with generic database met

What do you use __init__.py for?

2006-04-27 Thread redefined . horizons
I have just started learning about Python Packages. I know that a directory must contains the '__init__.py' script to be considered a Python package, and that this script is executed when the package is imported. But what other uses does the '__init__.py' script have? What do you use it for? I