def get_int(self, arg, min_value=<NUM_LIT:0>, default=<NUM_LIT:1>, cmdname=None,<EOL>at_most=None):
if arg is None: return default<EOL>default = self.get_int_noerr(arg)<EOL>if default is None:<EOL><INDENT>if cmdname:<EOL><INDENT>self.errmsg(("<STR_LIT>"<EOL>+ "<STR_LIT>") % (cmdname, str(arg)))<EOL><DEDENT>else:<EOL><INDENT>self.errmsg('<STR_LIT>'<EOL>% str(arg))<EOL>pass<EOL><DEDENT>return None<EOL>pass<EOL><DEDENT>if default < min_value:<EOL><INDENT>if cmdname:<EOL><INDENT>self.errmsg(("<STR_LIT>" +<EOL>'<STR_LIT>')<EOL>% (cmdname, min_value, default))<EOL><DEDENT>else:<EOL><INDENT>self.errmsg(("<STR_LIT>" +<EOL>'<STR_LIT>')<EOL>% (min_value, default))<EOL>pass<EOL><DEDENT>return None<EOL><DEDENT>elif at_most and default > at_most:<EOL><INDENT>if cmdname:<EOL><INDENT>self.errmsg(("<STR_LIT>" +<EOL>'<STR_LIT>')<EOL>% (cmdname, at_most, default))<EOL><DEDENT>else:<EOL><INDENT>self.errmsg(("<STR_LIT>")<EOL>% (at_most, default))<EOL>pass<EOL><DEDENT>pass<EOL><DEDENT>return default<EOL>
If no argument use the default. If arg is a an integer between
        least min_value and at_most, use that. Otherwise report an error.
        If there's a stack frame use that in evaluation.