Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/p/y/pyscholar-HEAD/other-code/BSXPath_ver001e/TEST_BSXPath.py   pyscholar(Download)
 
from BSXPath import BSXPathEvaluator,XPathResult
from BSXPath import ExtDict,typeof,toString
 
(document,options,url_data)=(None,None,u'http://svn.coderepos.org/share/lang/javascript/javascript-xpath/trunk/test/functional/data/')
    else:
      if typeof(tester.value)!='string':
        return ExtDict({'status':'NG','detail':'value(' + toString(nodes) + ')'})
      else:
        return ExtDict({'status':'NG','detail':'value("' + escapeStr(toString(nodes)) + '")'})
          t += '.' + '.'.join(classes)
      elif nodeType==3:
        t += 'text("' + escapeStr(toString(node.nodeValue)) + '")'
      elif nodeType==7:
        t += 'processing-instruction(' + node.nodeName+'="' + escapeStr(toString(node.nodeValue)) + '")'