Re: Creating logged functions using decorators

2007-07-07 Thread Michele Simionato
On Jul 7, 8:47 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I m thinking about writing some code which logs the input and output > of a function/script and stores it in a database using sqlalchemy > (although I havent started on this yet). I want to do this via a > decorator ( I think

Re: Creating logged functions using decorators

2007-07-07 Thread Carsten Haese
On Sat, 2007-07-07 at 11:59 -0700, Paul McGuire wrote: > On Jul 7, 1:47 pm, "Nathan Harmston" <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I m thinking about writing some code which logs the input and output > > of a function/script and stores it in a database using sqlalchemy > > (although I haven

Re: Creating logged functions using decorators

2007-07-07 Thread Paul McGuire
On Jul 7, 1:47 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I m thinking about writing some code which logs the input and output > of a function/script and stores it in a database using sqlalchemy > (although I havent started on this yet). I want to do this via a > decorator ( I think

Creating logged functions using decorators

2007-07-07 Thread Nathan Harmston
Hi, I m thinking about writing some code which logs the input and output of a function/script and stores it in a database using sqlalchemy (although I havent started on this yet). I want to do this via a decorator ( I think this is the best way ). def log(fn): def newfn(*args): print