Going off of this example, could someone please tell me why I can not kill this program with Ctrl+C:
#!/usr/bin/env python
import web
import threading
class MyWebserver(threading.Thread):
def run (self):
urls = ('/', 'MyWebserver')
app = web.application(urls, globals())
app.run()
def POST (self):
pass
if __name__ == '__main__':
MyWebserver().start()