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

Method put_sequence

python/proton/_data.py:1449–1463  ·  view source on GitHub ↗

A convenience method for encoding a Python ``list`` as an AMQP list. :param s: The sequence to be encoded :raise: :exc:`DataException` if there is a Proton error.

(self, s: List[Any])

Source from the content-addressed store, hash-verified

1447 return result
1448
1449 def put_sequence(self, s: List[Any]) -> None:
1450 """
1451 A convenience method for encoding a Python ``list`` as an
1452 AMQP list.
1453
1454 :param s: The sequence to be encoded
1455 :raise: :exc:`DataException` if there is a Proton error.
1456 """
1457 self.put_list()
1458 self.enter()
1459 try:
1460 for o in s:
1461 self.put_object(o)
1462 finally:
1463 self.exit()
1464
1465 def get_sequence(self) -> List[Any]:
1466 """

Callers

nothing calls this directly

Calls 4

put_listMethod · 0.95
enterMethod · 0.95
put_objectMethod · 0.95
exitMethod · 0.95

Tested by

no test coverage detected