Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
db4220ea
Kaydet (Commit)
db4220ea
authored
Eyl 11, 2015
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25030: Do not document seek() as if it accepts keyword arguments
Patch from Shiyao Ma.
üst
91c03e09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
io.rst
Doc/library/io.rst
+7
-6
ACKS
Misc/ACKS
+1
-0
bytesio.c
Modules/_io/bytesio.c
+1
-1
No files found.
Doc/library/io.rst
Dosyayı görüntüle @
db4220ea
...
...
@@ -301,11 +301,11 @@ I/O Base Classes
Note that it's already possible to iterate on file objects using ``for
line in file: ...`` without calling ``file.readlines()``.
.. method:: seek(offset
, whence=SEEK_SET
)
.. method:: seek(offset
[, whence]
)
Change the stream position to the given byte *offset*. *offset* is
interpreted relative to the position indicated by *whence*.
Values for
*whence* are:
interpreted relative to the position indicated by *whence*.
The default
value for *whence* is :data:`SEEK_SET`. Values for
*whence* are:
* :data:`SEEK_SET` or ``0`` -- start of the stream (the default);
*offset* should be zero or positive
...
...
@@ -760,10 +760,11 @@ Text I/O
If *size* is specified, at most *size* characters will be read.
.. method:: seek(offset
, whence=SEEK_SET
)
.. method:: seek(offset
[, whence]
)
Change the stream position to the given *offset*. Behaviour depends
on the *whence* parameter:
Change the stream position to the given *offset*. Behaviour depends on
the *whence* parameter. The default value for *whence* is
:data:`SEEK_SET`.
* :data:`SEEK_SET` or ``0``: seek from the start of the stream
(the default); *offset* must either be a number returned by
...
...
Misc/ACKS
Dosyayı görüntüle @
db4220ea
...
...
@@ -1276,6 +1276,7 @@ Alexander Shigin
Pete Shinners
Michael Shiplett
John W. Shipman
Shiyao Ma
Alex Shkop
Joel Shprentz
Yue Shuaijie
...
...
Modules/_io/bytesio.c
Dosyayı görüntüle @
db4220ea
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment