They're called "decorators", and here's a pretty good overview: http://www.artima.com/weblogs/viewpost.jsp?thread=240808
Here's the definition of classmethod: http://docs.python.org/library/functions.html#classmethod and staticmethod: http://docs.python.org/library/functions.html#staticmethod On Fri, Mar 12, 2010 at 3:59 AM, B <[email protected]> wrote: > Why are these used prior to defining a method for a model? > > @classmethod > @staticmethod > > What is the difference between them? Are there others I should be > aware of? > Must I use them? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
