mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #25030: Do not document seek() as if it accepts keyword arguments
Patch from Shiyao Ma.
This commit is contained in:
parent
91c03e090a
commit
db4220ea09
3 changed files with 9 additions and 7 deletions
|
@ -530,7 +530,7 @@ bytesio_iternext(bytesio *self)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(seek_doc,
|
||||
"seek(pos, whence=0) -> int. Change stream position.\n"
|
||||
"seek(pos[, whence]) -> int. Change stream position.\n"
|
||||
"\n"
|
||||
"Seek to byte offset pos relative to position indicated by whence:\n"
|
||||
" 0 Start of stream (the default). pos should be >= 0;\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue