2009-09-08 例外を派手に python 例外を派手にする方法 import sre_constants ... try: 0 == 1 except sre_constants.error, msg: print "%s" % msg こんな感じで。