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