Repository: qpid-proton Updated Branches: refs/heads/master 1e4118f63 -> f39970691
PROTON-880: make Array interable for convenience Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f3997069 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f3997069 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f3997069 Branch: refs/heads/master Commit: f39970691283d32000c1adb2230795cdded20a63 Parents: 059113a Author: Gordon Sim <[email protected]> Authored: Wed May 6 22:31:21 2015 +0100 Committer: Gordon Sim <[email protected]> Committed: Wed May 6 22:31:31 2015 +0100 ---------------------------------------------------------------------- proton-c/bindings/python/proton/__init__.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f3997069/proton-c/bindings/python/proton/__init__.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/__init__.py b/proton-c/bindings/python/proton/__init__.py index 4528957..43fd332 100644 --- a/proton-c/bindings/python/proton/__init__.py +++ b/proton-c/bindings/python/proton/__init__.py @@ -1299,6 +1299,9 @@ class Array(object): self.type = type self.elements = elements + def __iter__(self): + return iter(self.elements) + def __repr__(self): if self.elements: els = ", %s" % (", ".join(map(repr, self.elements))) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
