Name parser
Methods
|
|
__init__
format
parse
|
|
__init__
|
__init__ (
self,
direction=0,
separator='',
escape='',
ignorecase=None,
trimblanks=None,
beginquote='',
endquote='',
beginquote2='',
endquote2='',
multi_quotes=False,
decode_parts=True,
)
Exceptions
|
|
ValueError, "Begin quote 2 supplied without begin quote 1"
ValueError, "Direction must be 1, 0 (flat), or -1 (reverse)"
ValueError, "End quote 2 supplied without begin quote 2"
ValueError, "End quote supplied without begin quote"
ValueError, "Separator not meaningful for flat syntax"
ValueError, "Separator required for hierarchical syntax"
|
|
|
format
|
format ( self, seq )
Format a sequence as a string in this syntax
|
|
parse
|
parse ( self, aStr )
Parse a string according to defined syntax
|
|