parameters: ()
return_statement: return Error(_obj=ret)
docstring: Get the last global error registered. This is per thread if
         compiled with thread support.
docstring_summary: Get the last global error registered. This is per thread if
         compiled with thread support.
docstring_tokens: Get the last global error registered . This is per thread if compiled with thread support .
function: def lastError():
      """Get the last global error registered. This is per thread if
         compiled with thread support. """
      ret = libxml2mod.xmlGetLastError()
      if ret is None:raise treeError('xmlGetLastError() failed')
      return Error(_obj=ret)
function_tokens: def lastError ( ) : ret = libxml2mod . xmlGetLastError ( ) if ret is None : raise treeError ( 'xmlGetLastError() failed' ) return Error ( _obj = ret )