[
https://issues.apache.org/jira/browse/QPID-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759425#comment-13759425
]
ASF subversion and git services commented on QPID-5104:
-------------------------------------------------------
Commit 1520416 from [~gsim] in branch 'qpid/trunk'
[ https://svn.apache.org/r1520416 ]
QPID-5104: make handling of properties in swigged impl match the pure python
impl more closely
> 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
> Assignee: Gordon Sim
>
> 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]