[Python-Dev] PEP282 and the warnings framework

Aahz aahz@pythoncraft.com
Thu, 16 May 2002 11:52:22 -0400


On Thu, May 16, 2002, holger krekel wrote:
> Aahz wrote:
>> On Thu, May 16, 2002, holger krekel wrote:
>>> Kevin Butler wrote:
>>>> 
>>>> If I have a choice between writing:
>>>> 
>>>>    log.debug(
>>>>      "HOME environment variable set to non-existent directory %s",
>>>>      homedir
>>>>      )
>>> 
>>> with the mapping in my previous posting you would write
>>> 
>>>     log.debug(
>>>         "HOME environment variable set to non-existent directory " + homedir
>>>         )
>> 
>> There is no difference between these two.
> 
> that was my implicit argument (that you don't loose convenience).
> thanks for making it explicit :-)

Whoops.  I just realized that I misread the "," in the first example for
a "%".  Never mind, I should just stay out of this thread, but before I
leave, I have to say that my esthetic sense prefers the class-based
logging levels.  I doubt it will make much practical difference, though.
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In the end, outside of spy agencies, people are far too trusting and
willing to help."  --Ira Winkler