[ create a new paste ] login | about

Link: http://codepad.org/bdCaLiUs    [ raw code | output | fork ]

Python, pasted on Oct 23:
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)


Output:
1
2
3
4
Traceback (most recent call last):
  Line 1, in <module>
    class Test(webapp.RequestHandler):
NameError: name 'webapp' is not defined


Create a new paste based on this one


Comments: