Skip to content

Commit 5bcfe72

Browse files
Add note to BasicIo docs about planned removal
1 parent 672196f commit 5bcfe72

File tree

3 files changed

+43
-12
lines changed

3 files changed

+43
-12
lines changed

src/interface/basicio.i

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
"Class interface to access files, memory and remote data.";
2424
#endif
2525

26+
%feature("docstring") Exiv2::BasicIo "An interface for simple binary IO.
27+
28+
This appears to be mainly for use internally by libexiv2, apart from
29+
accessing data with the mmap() and munmap() methods. Since v0.18.0
30+
python-exiv2 has an Image.data() method to provide data access without
31+
going via a Python BasicIo object.
32+
33+
It is planned to remove BasicIo from the Python interface in a future
34+
release. Please let me ([email protected]) know if that wiould
35+
be a problem for you.";
36+
2637
#pragma SWIG nowarn=321 // 'open' conflicts with a built-in name in python
2738

2839
%include "shared/preamble.i"

src/swig-0_27_7/basicio_wrap.cxx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6034,9 +6034,14 @@ static PyHeapTypeObject SwigPyBuiltin__Exiv2__BasicIo_type = {
60346034
"\n"
60356035
"An interface for simple binary IO.\n"
60366036
"\n"
6037-
"Designed to have semantics and names similar to those of C style FILE*\n"
6038-
"operations. Subclasses should all behave the same so that they can be\n"
6039-
"interchanged.\n"
6037+
"This appears to be mainly for use internally by libexiv2, apart from\n"
6038+
"accessing data with the mmap() and munmap() methods. Since v0.18.0\n"
6039+
"python-exiv2 has an Image.data() method to provide data access without\n"
6040+
"going via a Python BasicIo object.\n"
6041+
"\n"
6042+
"It is planned to remove BasicIo from the Python interface in a future\n"
6043+
"release. Please let me ([email protected]) know if that wiould\n"
6044+
"be a problem for you.\n"
60406045
"", /* tp_doc */
60416046
(traverseproc) 0, /* tp_traverse */
60426047
(inquiry) 0, /* tp_clear */
@@ -6245,9 +6250,14 @@ static PyTypeObject *SwigPyBuiltin__Exiv2__BasicIo_type_create(PyTypeObject *typ
62456250
{ Py_tp_doc, (void *)"\n"
62466251
"An interface for simple binary IO.\n"
62476252
"\n"
6248-
"Designed to have semantics and names similar to those of C style FILE*\n"
6249-
"operations. Subclasses should all behave the same so that they can be\n"
6250-
"interchanged.\n"
6253+
"This appears to be mainly for use internally by libexiv2, apart from\n"
6254+
"accessing data with the mmap() and munmap() methods. Since v0.18.0\n"
6255+
"python-exiv2 has an Image.data() method to provide data access without\n"
6256+
"going via a Python BasicIo object.\n"
6257+
"\n"
6258+
"It is planned to remove BasicIo from the Python interface in a future\n"
6259+
"release. Please let me ([email protected]) know if that wiould\n"
6260+
"be a problem for you.\n"
62516261
"" },
62526262
{ Py_tp_repr, (void *)(reprfunc) 0 },
62536263
{ Py_tp_str, (void *)(reprfunc) 0 },

src/swig-0_28_7/basicio_wrap.cxx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6301,9 +6301,14 @@ static PyHeapTypeObject SwigPyBuiltin__Exiv2__BasicIo_type = {
63016301
"\n"
63026302
"An interface for simple binary IO.\n"
63036303
"\n"
6304-
"Designed to have semantics and names similar to those of C style FILE*\n"
6305-
"operations. Subclasses should all behave the same so that they can be\n"
6306-
"interchanged.\n"
6304+
"This appears to be mainly for use internally by libexiv2, apart from\n"
6305+
"accessing data with the mmap() and munmap() methods. Since v0.18.0\n"
6306+
"python-exiv2 has an Image.data() method to provide data access without\n"
6307+
"going via a Python BasicIo object.\n"
6308+
"\n"
6309+
"It is planned to remove BasicIo from the Python interface in a future\n"
6310+
"release. Please let me ([email protected]) know if that wiould\n"
6311+
"be a problem for you.\n"
63076312
"", /* tp_doc */
63086313
(traverseproc) 0, /* tp_traverse */
63096314
(inquiry) 0, /* tp_clear */
@@ -6512,9 +6517,14 @@ static PyTypeObject *SwigPyBuiltin__Exiv2__BasicIo_type_create(PyTypeObject *typ
65126517
{ Py_tp_doc, (void *)"\n"
65136518
"An interface for simple binary IO.\n"
65146519
"\n"
6515-
"Designed to have semantics and names similar to those of C style FILE*\n"
6516-
"operations. Subclasses should all behave the same so that they can be\n"
6517-
"interchanged.\n"
6520+
"This appears to be mainly for use internally by libexiv2, apart from\n"
6521+
"accessing data with the mmap() and munmap() methods. Since v0.18.0\n"
6522+
"python-exiv2 has an Image.data() method to provide data access without\n"
6523+
"going via a Python BasicIo object.\n"
6524+
"\n"
6525+
"It is planned to remove BasicIo from the Python interface in a future\n"
6526+
"release. Please let me ([email protected]) know if that wiould\n"
6527+
"be a problem for you.\n"
65186528
"" },
65196529
{ Py_tp_repr, (void *)(reprfunc) 0 },
65206530
{ Py_tp_str, (void *)(reprfunc) 0 },

0 commit comments

Comments
 (0)