@@ -4424,12 +4424,6 @@ static PyObject* keys_struct(struct_info& info) {
44244424};
44254425
44264426
4427- static PyObject* Exiv2_DataSet___members___get (Exiv2::DataSet*) {
4428- init_info_Exiv2_DataSet ();
4429- return keys_struct (info_Exiv2_DataSet);
4430- };
4431-
4432-
44334427static PyObject* values_struct (struct_info& info, PyObject* obj) {
44344428 PyObject* result = PyTuple_New (info.members .size ());
44354429 for (size_t i = 0 ; i < info.members .size (); i++)
@@ -4481,31 +4475,21 @@ SWIGINTERNINLINE PyObject*
44814475}
44824476
44834477SWIGINTERN PyObject *Exiv2_DataSet_keys (Exiv2::DataSet *self){
4484- // Deprecated since 2025-09-11
4485- PyErr_WarnEx (PyExc_DeprecationWarning,
4486- " Please use __members__ to get the struct member names" , 1 );
4487- return Exiv2_DataSet___members___get (self);
4478+ init_info_Exiv2_DataSet ();
4479+ return keys_struct (info_Exiv2_DataSet);
44884480 }
44894481SWIGINTERN PyObject *Exiv2_DataSet_values (Exiv2::DataSet *self,PyObject *py_self){
4490- // Deprecated since 2025-09-11
4491- PyErr_WarnEx (PyExc_DeprecationWarning,
4492- " Please use __members__ to get the struct member names"
4493- " and getattr to get values from names" , 1 );
44944482 init_info_Exiv2_DataSet ();
44954483 return values_struct (info_Exiv2_DataSet, py_self);
44964484 }
44974485SWIGINTERN PyObject *Exiv2_DataSet_items (Exiv2::DataSet *self,PyObject *py_self){
4498- // Deprecated since 2025-09-11
4499- PyErr_WarnEx (PyExc_DeprecationWarning,
4500- " Please use __members__ to get the struct member names"
4501- " and getattr to get values from names" , 1 );
45024486 init_info_Exiv2_DataSet ();
45034487 return items_struct (info_Exiv2_DataSet, py_self);
45044488 }
45054489SWIGINTERN PyObject *Exiv2_DataSet___iter__ (){
45064490 // Deprecated since 2025-09-11
45074491 PyErr_WarnEx (PyExc_DeprecationWarning,
4508- " Please iterate over the __members__ attribute " , 1 );
4492+ " Please iterate over keys() function output " , 1 );
45094493 init_info_Exiv2_DataSet ();
45104494 PyObject* seq = keys_struct (info_Exiv2_DataSet);
45114495 PyObject* result = PySeqIter_New (seq);
@@ -5048,27 +5032,6 @@ SWIGINTERN PyObject *_wrap_DataSet_photoshop__get(PyObject *self, PyObject *args
50485032}
50495033
50505034
5051- SWIGINTERN PyObject *_wrap_DataSet___members___get (PyObject *self, PyObject *args) {
5052- PyObject *resultobj = 0 ;
5053- Exiv2::DataSet *arg1 = (Exiv2::DataSet *) 0 ;
5054- void *argp1 = 0 ;
5055- int res1 = 0 ;
5056- PyObject *result = 0 ;
5057-
5058- if (!SWIG_Python_UnpackTuple (args, " DataSet___members___get" , 0 , 0 , 0 )) SWIG_fail;
5059- res1 = SWIG_ConvertPtr (self, &argp1,SWIGTYPE_p_Exiv2__DataSet, 0 | 0 );
5060- if (!SWIG_IsOK (res1)) {
5061- SWIG_exception_fail (SWIG_ArgError (res1), " in method '" " DataSet___members___get" " ', argument " " 1" " of type '" " Exiv2::DataSet *" " '" );
5062- }
5063- arg1 = reinterpret_cast < Exiv2::DataSet * >(argp1);
5064- result = (PyObject *)Exiv2_DataSet___members___get (arg1);
5065- resultobj = result;
5066- return resultobj;
5067- fail:
5068- return NULL ;
5069- }
5070-
5071-
50725035SWIGINTERN PyObject *_wrap_DataSet_keys (PyObject *self, PyObject *args) {
50735036 PyObject *resultobj = 0 ;
50745037 Exiv2::DataSet *arg1 = (Exiv2::DataSet *) 0 ;
@@ -5852,7 +5815,6 @@ static SwigPyGetSet DataSet_title__getset = { _wrap_DataSet_title__get, 0 };
58525815static SwigPyGetSet DataSet_photoshop__getset = { _wrap_DataSet_photoshop__get, 0 };
58535816static SwigPyGetSet DataSet_desc__getset = { _wrap_DataSet_desc__get, 0 };
58545817static SwigPyGetSet DataSet_repeatable__getset = { _wrap_DataSet_repeatable__get, 0 };
5855- static SwigPyGetSet DataSet___members___getset = { _wrap_DataSet___members___get, 0 };
58565818static SwigPyGetSet DataSet_number__getset = { _wrap_DataSet_number__get, 0 };
58575819static SwigPyGetSet DataSet_maxbytes__getset = { _wrap_DataSet_maxbytes__get, 0 };
58585820static SwigPyGetSet DataSet___dict___getset = { SwigPyObject_get___dict__, 0 };
@@ -5866,19 +5828,6 @@ SWIGINTERN PyGetSetDef SwigPyBuiltin__Exiv2__DataSet_getset[] = {
58665828 { (char *)" photoshop_" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" Photoshop string" , &DataSet_photoshop__getset },
58675829 { (char *)" desc_" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" Dataset description" , &DataSet_desc__getset },
58685830 { (char *)" repeatable_" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" True if dataset is repeatable" , &DataSet_repeatable__getset },
5869- { (char *)" __members__" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" \n "
5870- " Structure member names.\n "
5871- " \n "
5872- " :type: tuple of str\n "
5873- " \n "
5874- " List of names used to access members as attributes (``object.name``) or\n "
5875- " with dict-like indexing (``object['name']``). Attribute access is\n "
5876- " preferred as it is more efficient.\n "
5877- " \n "
5878- " Although the actual structure member names end with underscores, the\n "
5879- " Python interface uses names without underscores, as listed in\n "
5880- " ``__members__``.\n "
5881- " " , &DataSet___members___getset },
58825831 { (char *)" number_" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" Dataset number" , &DataSet_number__getset },
58835832 { (char *)" maxbytes_" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" Maximum number of bytes" , &DataSet_maxbytes__getset },
58845833 { (char *)" __dict__" , SwigPyBuiltin_FunpackGetterClosure, 0 , (char *)" Dataset number" , &DataSet___dict___getset },
@@ -5907,9 +5856,16 @@ SwigPyBuiltin__Exiv2__DataSet_richcompare(PyObject *self, PyObject *other, int o
59075856SWIGINTERN PyMethodDef SwigPyBuiltin__Exiv2__DataSet_methods[] = {
59085857 { " keys" , _wrap_DataSet_keys, METH_NOARGS, " \n "
59095858 " Get structure member names.\n "
5859+ " \n "
5860+ " Return the names used to access members as attributes (``object.name``)\n "
5861+ " or with dict-like indexing (``object['name']``). Attribute access is\n "
5862+ " preferred as it is more efficient.\n "
5863+ " \n "
5864+ " Although the exiv2 C++ structure member names end with underscores, the\n "
5865+ " Python interface uses names without underscores.\n "
59105866 " :rtype: tuple of str\n "
5911- " :return: structure member names (with any trailing underscores \n "
5912- " removed). \n "
5867+ " :return: structure member names. \n "
5868+ " \n "
59135869 " " },
59145870 { " values" , _wrap_DataSet_values, METH_NOARGS, " \n "
59155871 " Get structure member values.\n "
@@ -5919,8 +5875,7 @@ SWIGINTERN PyMethodDef SwigPyBuiltin__Exiv2__DataSet_methods[] = {
59195875 { " items" , _wrap_DataSet_items, METH_NOARGS, " \n "
59205876 " Get structure members.\n "
59215877 " :rtype: tuple of (str, value) tuple\n "
5922- " :return: structure member (name, value) pairs (with any trailing\n "
5923- " underscores removed from names).\n "
5878+ " :return: structure member (name, value) pairs.\n "
59245879 " " },
59255880 { " __iter__" , (PyCFunction)(void (*)(void ))_wrap_DataSet___iter__, METH_STATIC|METH_NOARGS, " " },
59265881 { NULL , NULL , 0 , NULL } /* Sentinel */
0 commit comments