Ah, gotcha. What was I thinking? It's pretty obvious now :P

On Thu, Dec 2, 2010 at 21:37, pjrhar...@gmail.com <pjrhar...@gmail.com>wrote:

> On Dec 1, 2:43 am, Andre Terra <andrete...@gmail.com> wrote:
> > Noob question here: why would it need limit=5 if the funcion has default
> > values?
>
> Even if it has a default value, you still need to call it to get your
> decorator. As someone wrote above, its a function that  returns a
> decorator, not actually a decorator. So you could just do @ratelimit()
> to use the defaults, but you need the brackets.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to