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])
| 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 | """ |
nothing calls this directly
no test coverage detected