def find(elem, path, namespaces=None):
    it = iterfind(elem, path, namespaces)
    try:
        try:
            _next = it.next
        except AttributeError:
            return next(it)
        else:
            return _next()
    except __HOLE__:
        return None

##
# Find all matching objects.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/lxml-3.3.6/src/lxml/_elementpath.py/find