what is __init__.py used for?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

what is __init__.py used for?

From: <zelzel.zsu@gmail.com>
Date: Tue Jul 05 2005 - 10:31:09 CEST

I am a new learner of Python Programming Language.
Now. I am reading a book.
In the section relating to module, I see an example.
the directory tree looks like below:
root\
    system1\
        __init__.py
        utilities.py
        main.py
        other.py
    system2\
        __init__.py
        utilities.py
        main.py
        other.py
    system3\ # Here or elsewhere
        __init__.py # Your new code here
        myfile.py

question
==========
   I was wonderring ... what is the __init__.py used for ?
   This question may seems to be stupid for an expert.
   But, if you can give the answer, it will be helpful for me.

  thanks.
Received on Thu Sep 29 16:45:39 2005