Package lxml :: Module etree :: Class _AppendOnlyElementProxy

[hide private]
[frames] | no frames]

# Class _AppendOnlyElementProxy

           object --+
                    |
       _ReadOnlyProxy --+
                        |
    _ReadOnlyElementProxy --+
                            |
                           _AppendOnlyElementProxy

A read-only element that allows adding children and changing the text content (i.e. everything that adds to the subtree).

Instance Methods | [hide private]

a new object with type S, a subtype of T

__new__(T, S, ...) |

append(...) Append a copy of an Element to the list of children. |

extend(...) Append a copy of all Elements from a sequence to the list of children. |

Inherited from `_ReadOnlyElementProxy`: `get`, `items`, `keys`, `values`

Inherited from `_ReadOnlyProxy`: `__copy__`, `__deepcopy__`, `__getitem__`, `__iter__`, `__len__`, `__nonzero__`, `__repr__`, `getchildren`, `getnext`, `getparent`, `getprevious`, `iterchildren`

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

Properties | [hide private]

| text Text before the first subelement. This is either a string or the value None, if there was no text.
Inherited from `_ReadOnlyElementProxy`: `attrib`, `prefix` Inherited from `_ReadOnlyProxy`: `sourceline`, `tag`, `tail` 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__