MCPcopy Index your code
hub / github.com/clips/pattern / __call__

Method __call__

pattern/web/__init__.py:2779–2783  ·  view source on GitHub ↗

Returns a list of nested Elements that match the given CSS selector. For example: Element("div#main p.comment a:first-child") matches:

(self, selector)

Source from the content-addressed store, hash-verified

2777 by_attribute = by_attr = getElementsByAttribute = get_elements_by_attribute
2778
2779 def __call__(self, selector):
2780 """ Returns a list of nested Elements that match the given CSS selector.
2781 For example: Element("div#main p.comment a:first-child") matches:
2782 """
2783 return SelectorChain(selector).search(self)
2784
2785 def __getattr__(self, k):
2786 if k in self.__dict__:

Callers

nothing calls this directly

Calls 2

SelectorChainClass · 0.85
searchMethod · 0.45

Tested by

no test coverage detected