Class representing an element of the MsgTree and its associated
message. Object of this class are returned by the various MsgTree methods
like messages() or walk(). The object can then be used as an iterator
over the message lines or casted into a string.
|
|
|
__len__(self)
Length of whole message string. |
source code
|
|
|
__eq__(self,
other)
Comparison method compares whole message strings. |
source code
|
|
|
_shift(self,
key,
target_elem)
Shift one of our key to specified target element. |
source code
|
|
|
|
|
__iter__(self)
Iterate over message lines starting from this tree element. |
source code
|
|
|
lines(self)
Get the whole message lines iterator from this tree element. |
source code
|
|
|
splitlines(self)
Get the whole message lines iterator from this tree element. |
source code
|
|
|
message(self)
Get the whole message buffer from this tree element. |
source code
|
|
|
|
|
append(self,
key,
msgline)
A new message line is coming, append it to the tree element with
associated source key. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|