Home | Trees | Indices | Help |
|
---|
|
object --+ | ElementWrapper
A wrapper around ElementTree Element objects whose main purpose is to provide nicer __repr__ and __str__ methods. In addition, any of the wrapped Element's methods that return other Element objects are overridden to wrap those values before returning them.
This makes Elements more convenient to work with in interactive sessions and doctests, at the expense of some efficiency.
|
|||
|
|||
|
|||
Inherited from |
|||
String Representation | |||
---|---|---|---|
|
|||
|
|||
Element interface Delegation (pass-through) | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Element interface Delegation (wrap result) | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
a new object with type S, a subtype of T |
|
|
|||
Inherited from |
|
Create and return a wrapper around a given Element object. If
|
Initialize a new Element wrapper for
|
repr(x)
|
str(x)
|
x.__setattr__('name', value) <==> x.name = value
|
x.__delattr__('name') <==> del x.name
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:55 2008 | http://epydoc.sourceforge.net |