def is_inf(self):
self._validate_number()<EOL>self._validate_real()<EOL>if not math.isinf(self.val):<EOL><INDENT>self._err('<STR_LIT>' % self.val)<EOL><DEDENT>return self<EOL>
Asserts that val is real number and Inf (infinity).