Package lxml :: Module etree :: Class _ReadOnlyProxy
[hide private]
[frames] | no frames]

Class _ReadOnlyProxy

object --+
         |
        _ReadOnlyProxy
Known Subclasses:

A read-only proxy class suitable for PIs/Comments (for internal use only!).
Instance Methods [hide private]
 
__copy__(self)
 
__deepcopy__(self, memo)
 
__getitem__(...)
Returns the subelement at the given position or the requested slice.
 
__iter__(x)
iter(x)
 
__len__(...)
Returns the number of subelements.
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__nonzero__(x)
x != 0
 
__repr__(x)
repr(x)
 
getchildren(...)
Returns all subelements. The elements are returned in document order.
 
getnext(...)
Returns the following sibling of this element or None.
 
getparent(...)
Returns the parent of this element or None for the root element.
 
getprevious(...)
Returns the preceding sibling of this element or None.
 
iterchildren(self, tag=None, reversed=False)
Iterate over the children of this element.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  sourceline
Original line number as found by the parser or None if unknown.
  tag
Element tag
  tail
Text after this element's end tag, but before the next sibling element's start tag. This is either a string or the value None, if there was no text.
  text
Text before the first subelement. This is either a string or the value None, if there was no text.

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__