parameters: (self, cur)
return_statement: return __tmp
docstring: Traversal function for the "parent" direction The parent
            axis contains the parent of the context node, if there is
             one.
docstring_summary: Traversal function for the "parent" direction The parent
            axis contains the parent of the context node, if there is
             one.
docstring_tokens: Traversal function for the parent direction The parent axis contains the parent of the context node if there is one .
function: def xpathNextParent(self, cur):
          """Traversal function for the "parent" direction The parent
            axis contains the parent of the context node, if there is
             one. """
          if cur is None: cur__o = None
          else: cur__o = cur._o
          ret = libxml2mod.xmlXPathNextParent(self._o, cur__o)
          if ret is None:raise xpathError('xmlXPathNextParent() failed')
          __tmp = xmlNode(_obj=ret)
          return __tmp
function_tokens: def xpathNextParent ( self , cur ) : if cur is None : cur__o = None else : cur__o = cur . _o ret = libxml2mod . xmlXPathNextParent ( self . _o , cur__o ) if ret is None : raise xpathError ( 'xmlXPathNextParent() failed' ) __tmp = xmlNode ( _obj = ret ) return __tmp