Puts a described value. A described node has two children, the descriptor and the value. These are specified by entering the node and putting the desired values. >>> data = Data() >>> data.put_described() >>> data.enter() >>>
(self)
| 892 | self._check(pn_data_put_array(self._data, described, element_type)) |
| 893 | |
| 894 | def put_described(self) -> None: |
| 895 | """ |
| 896 | Puts a described value. A described node has two children, the |
| 897 | descriptor and the value. These are specified by entering the node |
| 898 | and putting the desired values. |
| 899 | |
| 900 | >>> data = Data() |
| 901 | >>> data.put_described() |
| 902 | >>> data.enter() |
| 903 | >>> data.put_symbol("value-descriptor") |
| 904 | >>> data.put_string("the value") |
| 905 | >>> data.exit() |
| 906 | |
| 907 | :raise: :exc:`DataException` if there is a Proton error. |
| 908 | """ |
| 909 | self._check(pn_data_put_described(self._data)) |
| 910 | |
| 911 | def put_null(self) -> None: |
| 912 | """ |
no test coverage detected