First cut. Works for wrapping OpenAccess, but there's plenty
left to do. Currently, the test suite hurls at director_stl. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25a1f9844b
commit
ee3a6623da
8 changed files with 1520 additions and 1040 deletions
|
|
@ -580,6 +580,9 @@ namespace swig
|
|||
|
||||
%fragment("SwigPySequence_Cont");
|
||||
|
||||
# if defined(SWIGPYTHON_BUILTIN)
|
||||
%feature("tp_iter") Sequence "&swig::make_output_iterator_builtin< Sequence >";
|
||||
# else
|
||||
%newobject iterator(PyObject **PYTHON_SELF);
|
||||
%extend {
|
||||
swig::SwigPyIterator* iterator(PyObject **PYTHON_SELF) {
|
||||
|
|
@ -588,6 +591,8 @@ namespace swig
|
|||
|
||||
%pythoncode {def __iter__(self): return self.iterator()}
|
||||
}
|
||||
# endif // SWIGPYTHON_BUILTIN
|
||||
|
||||
#endif //SWIG_EXPORT_ITERATOR_METHODS
|
||||
%enddef
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue