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
b87630c2
Kaydet (Commit)
b87630c2
authored
Eyl 24, 2014
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods.
Patch by Terry Chia.
üst
717b0d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ACKS
Misc/ACKS
+1
-0
fileio.c
Modules/_io/fileio.c
+5
-3
No files found.
Misc/ACKS
Dosyayı görüntüle @
b87630c2
...
...
@@ -237,6 +237,7 @@ Nicolas Chauvat
Jerry Chen
Michael Chermside
Ingrid Cheung
Terry Chia
Albert Chin-A-Young
Adal Chiriliuc
Matt Chisholm
...
...
Modules/_io/fileio.c
Dosyayı görüntüle @
b87630c2
...
...
@@ -1124,7 +1124,8 @@ PyDoc_STRVAR(fileno_doc,
"This is needed for lower-level file interfaces, such the fcntl module."
);
PyDoc_STRVAR
(
seek_doc
,
"seek(offset: int[, whence: int]) -> None. Move to new file position.
\n
"
"seek(offset: int[, whence: int]) -> int. Move to new file position and
\n
"
"return the file position.
\n
"
"
\n
"
"Argument offset is a byte count. Optional argument whence defaults to
\n
"
"0 (offset from start of file, offset should be >= 0); other values are 1
\n
"
...
...
@@ -1136,9 +1137,10 @@ PyDoc_STRVAR(seek_doc,
#ifdef HAVE_FTRUNCATE
PyDoc_STRVAR
(
truncate_doc
,
"truncate([size: int]) -> None. Truncate the file to at most size bytes.
\n
"
"truncate([size: int]) -> int. Truncate the file to at most size bytes
\n
"
"and return the truncated size.
\n
"
"
\n
"
"Size defaults to the current file position, as returned by tell()."
"Size defaults to the current file position, as returned by tell().
\n
"
"The current file position is changed to the value of size."
);
#endif
...
...
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