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

Method get_sequence

python/proton/_data.py:1465–1478  ·  view source on GitHub ↗

A convenience method for decoding an AMQP list as a Python ``list``. :returns: The decoded list.

(self)

Source from the content-addressed store, hash-verified

1463 self.exit()
1464
1465 def get_sequence(self) -> List[Any]:
1466 """
1467 A convenience method for decoding an AMQP list as a Python ``list``.
1468
1469 :returns: The decoded list.
1470 """
1471 if self.enter():
1472 try:
1473 result = []
1474 while self.next():
1475 result.append(self.get_object())
1476 finally:
1477 self.exit()
1478 return result
1479
1480 def get_py_described(self) -> Described:
1481 """

Callers

nothing calls this directly

Calls 5

enterMethod · 0.95
nextMethod · 0.95
get_objectMethod · 0.95
exitMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected