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

Method prev

python/proton/_data.py:730–742  ·  view source on GitHub ↗

Advances the current node to its previous sibling and returns its type. If there is no previous sibling the current node remains unchanged and ``None`` is returned. :return: Node type or ``None``

(self)

Source from the content-addressed store, hash-verified

728 return None
729
730 def prev(self) -> Optional[int]:
731 """
732 Advances the current node to its previous sibling and returns its
733 type. If there is no previous sibling the current node remains
734 unchanged and ``None`` is returned.
735
736 :return: Node type or ``None``
737 """
738 found = pn_data_prev(self._data)
739 if found:
740 return self.type()
741 else:
742 return None
743
744 def enter(self) -> bool:
745 """

Callers

nothing calls this directly

Calls 2

typeMethod · 0.95
pn_data_prevFunction · 0.85

Tested by

no test coverage detected