cosmetic for generated python code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
28e84adf61
commit
a66fa50a8c
4 changed files with 10 additions and 30 deletions
|
|
@ -574,10 +574,7 @@ namespace swig
|
|||
return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
|
||||
}
|
||||
|
||||
%pythoncode {
|
||||
def __iter__(self):
|
||||
return self.iterator()
|
||||
}
|
||||
%pythoncode {def __iter__(self): return self.iterator()}
|
||||
}
|
||||
#endif //SWIG_EXPORT_ITERATOR_METHODS
|
||||
%enddef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue