[google-appengine] @staticmethod @clasmethod

2010-03-12 Thread B
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

Re: [google-appengine] @staticmethod @clasmethod

2010-03-12 Thread Ross M Karchner
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