| Home | Trees | Index | Help |
|
|---|
|
|
|
|||
int
|
__cmp__(self,
other)
Compare two ParseErrors, based on their line
number.
|
||
| __init__(self, descr, linenum=None, is_fatal=1) | |||
string
|
__repr__(self)
Return the formal representation of this ParseError.
|
||
string
|
__str__(self)
Return a string representation of this ParseError.
|
||
| descr(self) | |||
boolean
|
is_fatal(self) | ||
int or None
|
linenum(self) | ||
None
|
set_linenum_offset(self,
offset)
Set the line number offset for this error. |
||
|
Inherited from |
|||
|
|||
| _descr | A description of the error. | ||
| _fatal | True if this is a fatal error. | ||
| _linenum | The line on which the error occured within the docstring. | ||
| _offset | The line number where the docstring begins. | ||
|
|||
ParseErrors, based on their line number.
other is not a
ParseError.
|
|
ParseError.
ParseErrors have formal representations of the form:
<ParseError on line 12>
|
ParseError. This
multi-line string contains a description of the error, and specifies
where it occured.
|
|
|
|
_linenum when displaying the line number of the error.
|
|
|||
_descrA description of the error.
|
_fatalTrue if this is a fatal error.
|
_linenumThe line on which the error occured within the docstring. The linenum of the first line is 0.
|
_offsetThe line number where the docstring begins. This offset is added to_linenum when displaying the line number of the error.
Default value: 1.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:36:04 2006 | http://epydoc.sf.net |