def post_mortem(level=1):
 if (config.DEBUG >= level):
  pdb.post_mortem()

def post_mortem ( level = 1 ) : if ( config . DEBUG >= level ) : pdb . post_mortem ( )
provides a command line interface to python after an exceptions occurred .