kpvdr commented on a change in pull request #192: Changed Python API to better
handle strings where symbo…
URL: https://github.com/apache/qpid-proton/pull/192#discussion_r334663626
##########
File path: python/proton/_message.py
##########
@@ -430,6 +430,31 @@ def _set_reply_to_group_id(self, value):
:raise: :exc:`MessageException` if there is any Proton error when
using the setter.
""")
+ def _get_instructions(self):
+ return self.instruction_dict
+ def _set_instructions(self, instructions):
+ if isinstance(instructions, dict):
+ self.instruction_dict = AnnotationDict(instructions, throw=False)
Review comment:
Changed to "raise_on_error", as "raise" on its own in reserved in Python.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]