raise语句不是作为引起异常的吗?
web.py的cookbook中的这个rasie语句是什么用法呢?
class SomePage:
def POST(self):
# Do some application logic here, and then:
raise web.seeother('/someotherpage')
web.py的cookbook中的这个rasie语句是什么用法呢?
class SomePage:
def POST(self):
# Do some application logic here, and then:
raise web.seeother('/someotherpage')