Package lxml :: Module etree :: Class _ReadOnlyElementProxy

[hide private]
[frames] | no frames]

# Class _ReadOnlyElementProxy

        object --+
                 |
    _ReadOnlyProxy --+
                     |
                    _ReadOnlyElementProxy

Known Subclasses:
  - _AppendOnlyElementProxy

The main read-only Element proxy class (for internal use only!).

Instance Methods | [hide private]

a new object with type S, a subtype of T

__new__(T, S, ...) |

get(...) Gets an element attribute. |

items(...) Gets element attributes, as a sequence. The attributes are returned in an arbitrary order. |

keys(...) Gets a list of attribute names. The names are returned in an arbitrary order (just like for an ordinary Python dictionary). |

values(...) Gets element attributes, as a sequence. The attributes are returned in an arbitrary order. |

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]

| attrib
| prefix Namespace prefix or None.
Inherited from `_ReadOnlyProxy`: `sourceline`, `tag`, `tail`, `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__