Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-107801: Improve io.*.seek docs and docstrings #107899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
offset is int
  • Loading branch information
erlend-aasland committed Aug 12, 2023
commit 8bd646fa09690d11427be130332457c04ea5fa77
11 changes: 7 additions & 4 deletions 11 Modules/_io/clinic/iobase.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions 6 Modules/_io/iobase.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ iobase_unsupported(_PyIO_State *state, const char *message)
/*[clinic input]
_io._IOBase.seek
cls: defining_class
offset: object(unused=True)
offset: int(unused=True)
Offset as byte count.
Relative to the position given by 'whence'.
whence: int(unused=True, c_default='SEEK_SET') = io.SEEK_SET
Expand All @@ -106,8 +106,8 @@ Note that not all file objects are seekable.

static PyObject *
_io__IOBase_seek_impl(PyObject *self, PyTypeObject *cls,
PyObject *Py_UNUSED(offset), int Py_UNUSED(whence))
/*[clinic end generated code: output=ce3f9d90fd587b34 input=32e671d402f6e69f]*/
int Py_UNUSED(offset), int Py_UNUSED(whence))
/*[clinic end generated code: output=8bd74ea6538ded53 input=d7bfaaec026b9090]*/
{
_PyIO_State *state = get_io_state_by_cls(cls);
return iobase_unsupported(state, "seek");
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.