On Tue, Jun 16, 2009 at 4:54 PM, mrstevegross wrote:
> Is there a common way to initialize various stuff in a module? That
> is, I have some code in my module that I want to run whenever the
> module is imported. Currently, my module looks like this:
>
> === foo.py ===
> def something():
> ...
>
>
mrstevegross wrote:
Is there a common way to initialize various stuff in a module? That
is, I have some code in my module that I want to run whenever the
module is imported. Currently, my module looks like this:
=== foo.py ===
def something():
...
def somethingelse():
...
something()
=== E
mrstevegross wrote:
Is there a common way to initialize various stuff in a module? That
is, I have some code in my module that I want to run whenever the
module is imported. Currently, my module looks like this:
=== foo.py ===
def something():
...
def somethingelse():
...
something()
=== E
Is there a common way to initialize various stuff in a module? That
is, I have some code in my module that I want to run whenever the
module is imported. Currently, my module looks like this:
=== foo.py ===
def something():
...
def somethingelse():
...
something()
=== EOF ===
Is the 'someth