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
|
|
@ -316,10 +316,7 @@ namespace swig
|
|||
|
||||
%nodirector PySwigIterator;
|
||||
%extend PySwigIterator {
|
||||
%pythoncode {
|
||||
def __iter__(self):
|
||||
return self
|
||||
}
|
||||
%pythoncode {def __iter__(self): return self}
|
||||
}
|
||||
|
||||
%catches(swig::stop_iteration) PySwigIterator::value() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue