qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5104) Python Swig bindings do not expose Message properties in the same manner as the pure Python bindings
Date Fri, 06 Sep 2013 11:56:52 GMT

    [ https://issues.apache.org/jira/browse/QPID-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760158#comment-13760158
] 

ASF subversion and git services commented on QPID-5104:
-------------------------------------------------------

Commit 1520552 from [~gsim] in branch 'qpid/trunk'
[ https://svn.apache.org/r1520552 ]

QPID-5104: fix for python 2.4
                
> 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
>             Fix For: 0.25
>
>
> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message