On 7/24/06, Bryan <[EMAIL PROTECTED]> wrote:

Russell Keith-Magee wrote:
> 2) A decorator:

When did python support class decorators?

You know... one of these days, I'm going to learn to have coffee before I touch a keyboard :-)

You are correct - the @ syntax doesn't work for classes. However, that doesn't mean you can't use a decorator with Python 2.3-style notation:

class Thing(models.Model):
   ...
Thing = models.Abstract(Thing)

(sheepishly),
Russ Magee %-)


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to