Package Bio :: Package Phylo :: Module PhyloXML :: Class Other
[hide private]
[frames] | no frames]

Class Other

source code

          object --+        
                   |        
BaseTree.TreeElement --+    
                       |    
            PhyloElement --+
                           |
                          Other

Container for non-phyloXML elements in the tree.

Usually, an Other object will have either a 'value' or a non-empty list
of 'children', but not both. This is not enforced here, though.

:Parameters:
    tag : string
        local tag for the XML node
    namespace : string
        XML namespace for the node -- should not be the default phyloXML
        namespace.
    attributes : dict of strings
        attributes on the XML node
    value : string
        text contained directly within this XML node
    children : list 
        child nodes, if any (also `Other` instances)

Instance Methods [hide private]
 
__init__(self, tag, namespace=None, attributes=None, value=None, children=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self)
Iterate through the children of this object (if any).
source code

Inherited from BaseTree.TreeElement: __repr__, __str__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tag, namespace=None, attributes=None, value=None, children=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)