Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Stephen Hansen
On 6/15/10 9:03 AM, genkuro wrote: > I'm coming to Python from Java. I'm still getting a feel for scoping > limits. For the sake of curiosity, is there another way to refer to a > package besides name? The only way to refer to anything is by its name -- or, from a name and through subscript/dot

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Mark Lawrence
On 15/06/2010 17:03, genkuro wrote: On Jun 15, 8:49 am, Mark Lawrence wrote: On 15/06/2010 16:35, genkuro wrote: Newbie here. I may be missing something obvious, in which case, please feel free to berate and laugh at me. Here's a dubious line of code: logging = logging.getLogger(__name__)

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Jean-Michel Pichavant
genkuro wrote: On Jun 15, 8:49 am, Mark Lawrence wrote: On 15/06/2010 16:35, genkuro wrote: Newbie here. I may be missing something obvious, in which case, please feel free to berate and laugh at me. Here's a dubious line of code: logging = logging.getLogger(__name__)

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Dave Angel
genkuro wrote: Newbie here. I may be missing something obvious, in which case, please feel free to berate and laugh at me. Here's a dubious line of code: logging = logging.getLogger(__name__) How can I refer to the original logging package "logging" after this statement is run? Specifically,

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread genkuro
On Jun 15, 8:49 am, Mark Lawrence wrote: > On 15/06/2010 16:35, genkuro wrote: > > > Newbie here.  I may be missing something obvious, in which case, > > please feel free to berate and laugh at me. > > > Here's a dubious line of code: > > logging = logging.getLogger(__name__) > > > How can I refer

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Paul Rudin
Peter Otten <__pete...@web.de> writes: > genkuro wrote: > >> Newbie here. I may be missing something obvious, in which case, >> please feel free to berate and laugh at me. >> >> Here's a dubious line of code: >> logging = logging.getLogger(__name__) > > Dubious indeed. As a workaround you can im

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Peter Otten
genkuro wrote: > Newbie here. I may be missing something obvious, in which case, > please feel free to berate and laugh at me. > > Here's a dubious line of code: > logging = logging.getLogger(__name__) Dubious indeed. As a workaround you can import the module again, preferably under another na

Re: logging = logging.getLogger(__name__)

2010-06-15 Thread Mark Lawrence
On 15/06/2010 16:35, genkuro wrote: Newbie here. I may be missing something obvious, in which case, please feel free to berate and laugh at me. Here's a dubious line of code: logging = logging.getLogger(__name__) How can I refer to the original logging package "logging" after this statement is