Re: py.log using decorators for DRY

2005-10-29 Thread yoda
I feel so stupid... lol... now why didn't I think of that? Thanks Alex. -- http://mail.python.org/mailman/listinfo/python-list

Re: py.log using decorators for DRY

2005-10-29 Thread Alex Martelli
yoda <[EMAIL PROTECTED]> wrote: > I'm using py.log for logging and I find that I end up having the following > pattern emerge within my code (influenced by > http://agiletesting.blogspot.com/2005/06/keyword-based-logging-with-py-lib > rary.html): > > def foo(**kwargs): > log.foo(kwargs) >

py.log using decorators for DRY

2005-10-29 Thread yoda
I'm using py.log for logging and I find that I end up having the following pattern emerge within my code (influenced by http://agiletesting.blogspot.com/2005/06/keyword-based-logging-with-py-library.html): def foo(**kwargs): log.foo(kwargs) #body form This led me to believe that I could