Re: 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

Re: what is __init__.py used for?

From: Simon Brunning <simon.brunning@gmail.com>
Date: Tue Jul 05 2005 - 10:49:45 CEST

On 5 Jul 2005 01:31:09 -0700, zelzel.zsu@gmail.com <zelzel.zsu@gmail.com> wrote:
> I am a new learner of Python Programming Language.

Welcome!

> 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.

The __init__.py files make Python treat the directories as packages -
see http://docs.python.org/tut/node8.html#SECTION008400000000000000000.

We have to do something about those URLs!

-- 
Cheers,
Simon B,
simon@brunningonline.net,
http://www.brunningonline.net/simon/blog/
Received on Sat Oct 15 03:56:14 2005