@@ -4388,6 +4388,11 @@ SWIGINTERN CameraList_accessor *_CameraList_values(struct _CameraList *self){
43884388SWIGINTERN CameraList_accessor * _CameraList_items (struct _CameraList * self ){
43894389 return new_CameraList_accessor (self , CameraList_get_item );
43904390 }
4391+ SWIGINTERN PyObject * _CameraList___iter__ (struct _CameraList * self ){
4392+ return PySeqIter_New (SWIG_Python_NewPointerObj (
4393+ NULL , SWIG_as_voidptr (_CameraList_items (self )),
4394+ SWIGTYPE_p__CameraList_accessor , SWIG_POINTER_OWN ));
4395+ }
43914396SWIGINTERN int _CameraList___len__ (struct _CameraList * self ){
43924397
43934398
@@ -4789,6 +4794,34 @@ SWIGINTERN PyObject *_wrap_CameraList_items(PyObject *self, PyObject *args) {
47894794}
47904795
47914796
4797+ SWIGINTERN PyObject * _wrap_CameraList___iter__ (PyObject * self , PyObject * args ) {
4798+ PyObject * resultobj = 0 ;
4799+ struct _CameraList * arg1 = (struct _CameraList * ) 0 ;
4800+ void * argp1 = 0 ;
4801+ int res1 = 0 ;
4802+ PyObject * result = 0 ;
4803+
4804+ if (args && PyTuple_Check (args ) && PyTuple_GET_SIZE (args ) > 0 ) SWIG_exception_fail (SWIG_TypeError , "CameraList___iter__ takes no arguments" );
4805+ res1 = SWIG_ConvertPtr (self , & argp1 ,SWIGTYPE_p__CameraList , 0 | 0 );
4806+ if (!SWIG_IsOK (res1 )) {
4807+ SWIG_exception_fail (SWIG_ArgError (res1 ), "in method '" "CameraList___iter__" "', argument " "1" " of type '" "struct _CameraList *" "'" );
4808+ }
4809+ arg1 = (struct _CameraList * )(argp1 );
4810+ {
4811+ if (PyErr_WarnEx (PyExc_DeprecationWarning ,"_CameraList::__iter__" " is deprecated and"
4812+ " will be removed in a future release" , 1 ) < 0 ) SWIG_fail ;
4813+ result = (PyObject * )_CameraList___iter__ (arg1 );
4814+
4815+ if (PyErr_Occurred ()) SWIG_fail ;
4816+
4817+ }
4818+ resultobj = result ;
4819+ return resultobj ;
4820+ fail :
4821+ return NULL ;
4822+ }
4823+
4824+
47924825SWIGINTERN PyObject * _wrap_CameraList___len__ (PyObject * self , PyObject * args ) {
47934826 PyObject * resultobj = 0 ;
47944827 struct _CameraList * arg1 = (struct _CameraList * ) 0 ;
@@ -5197,6 +5230,8 @@ SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CameraList) /* defines _wrap_delete_Camer
51975230
51985231SWIGPY_BINARYFUNC_CLOSURE (_wrap_CameraList___getitem__ ) /* defines _wrap_CameraList___getitem___binaryfunc_closure */
51995232
5233+ SWIGPY_GETITERFUNC_CLOSURE (_wrap_CameraList___iter__ ) /* defines _wrap_CameraList___iter___getiterfunc_closure */
5234+
52005235SWIGPY_LENFUNC_CLOSURE (_wrap_CameraList___len__ ) /* defines _wrap_CameraList___len___lenfunc_closure */
52015236
52025237SWIGINTERN PyObject * _wrap_delete_CameraList_accessor (PyObject * self , PyObject * args ) {
@@ -5975,6 +6010,10 @@ SWIGINTERN PyMethodDef SwigPyBuiltin___CameraList_methods[] = {
59756010 "items(self) -> CameraList_accessor\n"
59766011 "Return an accessor for the (name, value) pairs in the list.\n"
59776012 "" },
6013+ { "__iter__" , _wrap_CameraList___iter__ , METH_VARARGS , "\n"
6014+ "__iter__(self) -> PyObject *\n"
6015+ "This function is deprecated and will be removed in a future release.\n"
6016+ "" },
59786017 { "__len__" , _wrap_CameraList___len__ , METH_VARARGS , "__len__(self) -> int" },
59796018 { "count" , _wrap_CameraList_count , METH_VARARGS , "\n"
59806019 "count(self) -> int\n"
@@ -6227,7 +6266,7 @@ static PyHeapTypeObject SwigPyBuiltin___CameraList_type = {
62276266 (inquiry ) 0 , /* tp_clear */
62286267 SwigPyBuiltin___CameraList_richcompare , /* tp_richcompare */
62296268 0 , /* tp_weaklistoffset */
6230- ( getiterfunc ) 0 , /* tp_iter */
6269+ _wrap_CameraList___iter___getiterfunc_closure , /* tp_iter */
62316270 (iternextfunc ) 0 , /* tp_iternext */
62326271 SwigPyBuiltin___CameraList_methods , /* tp_methods */
62336272 0 , /* tp_members */
@@ -6444,7 +6483,7 @@ static PyTypeObject *SwigPyBuiltin___CameraList_type_create(PyTypeObject *type,
64446483 { Py_mp_length , (void * )(lenfunc ) 0 },
64456484 { Py_mp_subscript , (void * )_wrap_CameraList___getitem___binaryfunc_closure },
64466485 { Py_mp_ass_subscript , (void * )(objobjargproc ) 0 },
6447- { Py_tp_iter , (void * )( getiterfunc ) 0 },
6486+ { Py_tp_iter , (void * )_wrap_CameraList___iter___getiterfunc_closure },
64486487 { Py_tp_iternext , (void * )(iternextfunc ) 0 },
64496488 { Py_nb_add , (void * )(binaryfunc ) 0 },
64506489 { Py_nb_subtract , (void * )(binaryfunc ) 0 },
0 commit comments