On 1 February 2011 17:26, Alex Gaynor <alex.gay...@gmail.com> wrote: <snip>
> How, precisely, would one apply a decorator to an assignment statement? > Unless there has been some change to Python's grammar I'm not aware of, > decorators can only be used on function and class definitions. You could wrap the value on the right of the assignment operator with a decorator I think. For some reason I don't feel comfortable with this though. > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." -- Evelyn Beatrice Hall (summarizing Voltaire) > "The people's good is the highest law." -- Cicero > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.