def default(self, line):       
        """Called on an input line when the command prefix is not recognized.
           In that case we execute the line as Python code.
        """
        try:
            exec(line) in self._locals, self._globals
        except Exception, e:
            print e.__class__, ":", e
Called on an input line when the command prefix is not recognized.
           In that case we execute the line as Python code.
        
recipes/Python/280500_Console_built_with_Cmd_object/recipe-280500.py