Re: __init__.py in packages

2005-06-08 Thread Greg Ewing
Gary Wilson Jr wrote: I would really like to see an example or situation that makes good use of the __init__.py file. I've attached a non-trivial example, from my PyGUI package. It uses some trickery to switch in one of a number of subdirectories of platform specific code, and then imports a bu

Re: __init__.py in packages

2005-06-08 Thread Jarek Zgoda
Gary Wilson Jr napisał(a): > What is intended use for __init__.py files? > Well, I found this: http://www.python.org/doc/essays/packages.html >>From what I can gather it is for initialization of the package when doing an > import, but I would really like to see an example or situation that makes g

Re: __init__.py in packages

2005-06-08 Thread F. Petitjean
Le Wed, 08 Jun 2005 10:34:38 -0500, Gary Wilson Jr a écrit : > I'm creating a python package foo. > > What is intended use for __init__.py files? > Well, I found this: http://www.python.org/doc/essays/packages.html >>From what I can gather it is for initialization of the package when doing an > im

__init__.py in packages

2005-06-08 Thread Gary Wilson Jr
I'm creating a python package foo. What is intended use for __init__.py files? Well, I found this: http://www.python.org/doc/essays/packages.html >From what I can gather it is for initialization of the package when doing an import, but I would really like to see an example or situation that makes