Skip to content
Permalink
Browse files
Add __iter__ for QgsFeature
  • Loading branch information
NathanW2 committed Aug 3, 2013
1 parent 8de00c1 commit 20e274a41394dc74350f0ef4e91dadc7f1d10025
Showing with 6 additions and 0 deletions.
  1. +6 −0 python/core/qgsfeature.sip
@@ -116,6 +116,12 @@ class QgsFeature

public:

SIP_PYOBJECT __iter__();
%MethodCode
PyObject *attrs = sipConvertFromType( &sipCpp->attributes(), sipType_QgsAttributes, Py_None );
sipRes = PyObject_GetIter(attrs);
%End

SIP_PYOBJECT __getitem__(int key);
%MethodCode
const QgsAttributes& attrs = sipCpp->attributes();

0 comments on commit 20e274a

Please sign in to comment.