On 04/24/2013 12:54 PM, The Night Tripper wrote:
Hi all
I have a small suite of python modules, say
A.py
B.py
C.py
which can be invoked in a variety of ways. eg.
1) A.py is invoked directly; this imports and uses B.py and C.py
2) B.py is invoked; this imports a
On Wed, Apr 24, 2013 at 6:54 PM, The Night Tripper wrote:
> Hi all
> I have a small suite of python modules, say
>
> A.py
> B.py
> C.py
>
> which can be invoked in a variety of ways. eg.
>
> 1) A.py is invoked directly; this imports and uses B.py and C.py
>
> 2) B.p
Maybe import mylogger.mylogger as gLog? I don't know what you mean by
"missing a trick". Your example seems pretty pythonic to me, except for the
fact that you use a singleton where you could have a couple of functions
and use the module as the namespace.
On 24 Apr 2013 17:58, "The Night Tripper"
Hi all
I have a small suite of python modules, say
A.py
B.py
C.py
which can be invoked in a variety of ways. eg.
1) A.py is invoked directly; this imports and uses B.py and C.py
2) B.py is invoked; this imports and uses A.py and C.py
I use the logging module in