qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [1/3] qpid-proton git commit: PROTON-880: make Array interable for convenience
Date Wed, 06 May 2015 21:30:31 GMT
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 <gsim@redhat.com>
Authored: Wed May 6 22:31:21 2015 +0100
Committer: Gordon Sim <gsim@redhat.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message