Package ptree :: Module elements :: Class _AbstractParentedElement
[hide private]
[frames] | no frames]

classobj _AbstractParentedElement

source code

Known Subclasses:

An abstract base class for (multi)parented element tree Elements.

Instance Methods [hide private]
 
__repr__(self) source code
 
_setparent(self, child)
Update child's parent pointer to point to self.
source code
 
_delparent(self, child)
Remove self from child's parent pointer.
source code
 
__delitem__(self, index) source code
 
__delslice__(self, start, stop) source code
 
__setitem__(self, index, element) source code
 
__setslice__(self, start, stop, elements) source code
 
append(self, element) source code
 
extend(self, elements) source code
 
insert(self, index, element) source code
 
pop(self) source code
 
remove(self, element) source code

Inherited from xml.etree.ElementTree._ElementInterface: __getitem__, __getslice__, __init__, __len__, clear, find, findall, findtext, get, getchildren, getiterator, items, keys, makeelement, set

Class Variables [hide private]

Inherited from xml.etree.ElementTree._ElementInterface: attrib, tag, tail, text

Method Details [hide private]

__repr__(self)
(Representation operator)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.__repr__

__delitem__(self, index)
(Index deletion operator)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.__delitem__

__delslice__(self, start, stop)
(Slice deletion operator)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.__delslice__

__setitem__(self, index, element)
(Index assignment operator)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.__setitem__

__setslice__(self, start, stop, elements)
(Slice assignment operator)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.__setslice__

append(self, element)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.append

insert(self, index, element)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.insert

remove(self, element)

source code 
Overrides: xml.etree.ElementTree._ElementInterface.remove