Re: using decorators with argument in Python/Django

2011-06-28 Thread Jigar Tanna
Sorry ... I understand will be careful may be i put it on a wrong post ... On Jun 28, 9:32 pm, Tom Evans wrote: > On Tue, Jun 28, 2011 at 5:24 PM, Jigar Tanna > wrote: > > hey, > > > I am new to Python and Django, was going through the concept of decorators >

using decorators with argument in Python/Django

2011-06-28 Thread Jigar Tanna
hey, I am new to Python and Django, was going through the concept of decorators where I came across a special case of using arguments with decorators Below is the code for memoization where I was looking at the concept... cache = {} def get_key(function, *args, **kw) : key = '%s. %s: ' % (f

Python/Django decorators with arguments

2011-06-28 Thread Jigar Tanna
hey, I am new to Python and Django, was going through the concept of decorators where I came across a special case of using arguments with decorators Below is the code for memoization where I was looking at the concept... cache = {} def get_key(function, *args, **kw) : key = '%s. %s: ' % (fun