1 2 3 4 5 6 7 8 9 10 11
class Test(webapp.RequestHandler): def get(self): s = self.request.get('sentence') if not hasattr(self, 'mylist'): mylist = [] try: htmlcode1 = HTML.table(mylist) except TypeError: htmlcode1 = HTML.table('empty table') mylist.append(s)
1 2 3 4
Traceback (most recent call last): Line 1, in <module> class Test(webapp.RequestHandler): NameError: name 'webapp' is not defined