diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-27 23:59:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 23:59:48 (GMT) |
commit | f90099c3bd8ba74ac69ffd26cbc443ae3ce00e10 (patch) | |
tree | 64a57b8961521f091d7a0f1d9506c4abeee06b7e /Modules/_io/clinic | |
parent | 311fd96dae5156b46e0eca982c12dd6bad00adf5 (diff) | |
download | cpython-f90099c3bd8ba74ac69ffd26cbc443ae3ce00e10.zip cpython-f90099c3bd8ba74ac69ffd26cbc443ae3ce00e10.tar.gz cpython-f90099c3bd8ba74ac69ffd26cbc443ae3ce00e10.tar.bz2 |
[3.12] gh-107801: Document io.TextIOWrapper.tell (#108265) (#108547)
(cherry picked from commit 38afa4af9bfc8297a5ee270c37f3f120a04297ea)
Diffstat (limited to 'Modules/_io/clinic')
-rw-r--r-- | Modules/_io/clinic/textio.c.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/_io/clinic/textio.c.h b/Modules/_io/clinic/textio.c.h index 63ec563..4a3c133 100644 --- a/Modules/_io/clinic/textio.c.h +++ b/Modules/_io/clinic/textio.c.h @@ -815,7 +815,11 @@ exit: PyDoc_STRVAR(_io_TextIOWrapper_tell__doc__, "tell($self, /)\n" "--\n" -"\n"); +"\n" +"Return the stream position as an opaque number.\n" +"\n" +"The return value of tell() can be given as input to seek(), to restore a\n" +"previous stream position."); #define _IO_TEXTIOWRAPPER_TELL_METHODDEF \ {"tell", (PyCFunction)_io_TextIOWrapper_tell, METH_NOARGS, _io_TextIOWrapper_tell__doc__}, @@ -978,4 +982,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored)) { return _io_TextIOWrapper_close_impl(self); } -/*[clinic end generated code: output=fc02f9e59bfa9956 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a3614e1c64747ff5 input=a9049054013a1b77]*/ |