MCPcopy Create free account
hub / github.com/apache/qpid-proton / narrow

Method narrow

python/proton/_data.py:768–776  ·  view source on GitHub ↗

Modify this :class:`Data` object to behave as if the current node is the root node of the tree. This impacts the behavior of :meth:`rewind`, :meth:`next`, :meth:`prev`, and anything else that depends on the navigational state of the :class:`Data` object. Use :meth:`w

(self)

Source from the content-addressed store, hash-verified

766 return pn_data_lookup(self._data, name)
767
768 def narrow(self) -> None:
769 """
770 Modify this :class:`Data` object to behave as if the current node is the
771 root node of the tree. This impacts the behavior of :meth:`rewind`,
772 :meth:`next`, :meth:`prev`, and anything else that depends on the
773 navigational state of the :class:`Data` object. Use :meth:`widen`
774 to reverse the effect of this operation.
775 """
776 pn_data_narrow(self._data)
777
778 def widen(self) -> None:
779 """ Reverse the effect of :meth:`narrow`. """

Callers 1

testLookupMethod · 0.45

Calls 1

pn_data_narrowFunction · 0.85

Tested by

no test coverage detected