logging: local functions ==> loss of lineno

Jean-Michel Pichavant jeanmichel at sequans.com
Wed Mar 24 06:37:17 EDT 2010


Peter Otten wrote:
> Vinay Sajip wrote:
>
>   
>> Sorry I'm a little late to this discussion. I could add a _findCaller
>> function to the module (not part of the public API, but replaceable by
>> someone who really needs to) which does the heavy lifting, and
>> Logger.findCaller just calls it. Then those who need to can implement
>> their own strategy, without needing to jump through hoops. Does that
>> approach sound helpful?
>>     
>
> [snip] 
>
> Note that I have no strong opinion on all this. If you leave things as is 
> I'm fine with that.
>
> Peter
>   
Agreed, I'm not sure it's worth the effort Vinay.

JM




More information about the Python-list mailing list