Darryl L. Pierce created QPID-5104:
--------------------------------------
Summary: Python Swig bindings do not expose Message properties in
the same manner as the pure Python bindings
Key: QPID-5104
URL: https://issues.apache.org/jira/browse/QPID-5104
Project: Qpid
Issue Type: Bug
Affects Versions: 0.22
Reporter: Darryl L. Pierce
With the pure Python bindings, message properties can be assigned using:
In [3]: msg.properties
Out[3]: {}
In [4]: msg.properties["foo"] = "bar"
In [5]: msg.properties
Out[5]: {'foo': 'bar'}
However, in the Swig python bindings this results in the property never being
set. This is because the call to properties appears to be calling the
underlying C++ code and returning a _copy_ of the properties map:
In [3]: msg.properties
Out[3]: {}
In [4]: msg.properties["foo"] = "bar"
In [5]: msg.properties
Out[5]: {}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]