MCPcopy Create free account
hub / github.com/gawel/pyquery / end

Method end

pyquery/pyquery.py:748–756  ·  view source on GitHub ↗

Break out of a level of traversal and return to the parent level. >>> m = ' Whoah! there ' >>> d = PyQuery(m) >>> d('p').eq(1).find('em').end().end() [ , ]

(self)

Source from the content-addressed store, hash-verified

746 return len(self)
747
748 def end(self):
749 """Break out of a level of traversal and return to the parent level.
750
751 >>> m = '<p><span><em>Whoah!</em></span></p><p><em> there</em></p>'
752 >>> d = PyQuery(m)
753 >>> d('p').eq(1).find('em').end().end()
754 [<p>, <p>]
755 """
756 return self._parent
757
758 ##############
759 # Attributes #

Callers 1

test_endMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_endMethod · 0.64