Package lxml :: Module objectify :: Class ObjectPath
[show private | hide private]
[frames | no frames]

Type ObjectPath

object --+
         |
        ObjectPath


Immutable object that represents a compiled object path.

Example for a path: 'root.child[1].{other}child[25]'
Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __call__(x, ...)
x.__call__(...) <==> x(...)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __str__(x)
x.__str__() <==> str(x)
  addattr(...)
Append a value to the target element in a subtree.
  hasattr(...)
  setattr(...)
Set the value of the target element in a subtree.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
member_descriptor find = <member 'find' of 'lxml.objectify.ObjectPath' obj...

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__call__(x, ...)
(Call operator)

x.__call__(...) <==> x(...)
Returns:
x(...)

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__str__(x)
(Informal representation operator)

x.__str__() <==> str(x)
Returns:
str(x)
Overrides:
__builtin__.object.__str__

addattr(...)

Append a value to the target element in a subtree.

If any of the children on the path does not exist, it is created.

setattr(...)

Set the value of the target element in a subtree.

If any of the children on the path does not exist, it is created.

Class Variable Details

find

Type:
member_descriptor
Value:
<member 'find' of 'lxml.objectify.ObjectPath' objects>                 

Generated by Epydoc 2.1 on Sat Aug 18 12:44:28 2007 http://epydoc.sf.net