Project

General

Profile

« Previous | Next » 

Revision 1003

xpath.py: Added is_rooted()

View differences:

xpath.py
42 42

  
43 43
def is_positive(path): return path[0].is_positive
44 44

  
45
def is_rooted(path): return elem_is_empty(path[0])
46

  
45 47
def value(path): return path[-1].value
46 48

  
47 49
def set_value(path, value): path[-1].value = value

Also available in: Unified diff