read pages 91-93 of "Python Essential Reference", 3rd ed., by the honorable David M. Beazley. Depending on your use of parameters or decorators, self is a parameter and you need it for the namespace reference.
On Tue, Jan 27, 2009 at 5:56 AM, 0815pascal <[email protected]> wrote: > > Hello, > > I'm new to google app engine and also new to python. I don't > understand why you have to code it like this: > > class MainPage(webapp.RequestHandler): > def get(self): > > I thought that def would define a function. But if I label it > different then get or post it doesn't work. Can somebody give me a > basic idea? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
