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
849a972f
Kaydet (Commit)
849a972f
authored
Eki 18, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #809535: Mention behaviour of seek on text files. Backported to 2.3.
üst
ad3fc44c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
libstdtypes.tex
Doc/lib/libstdtypes.tex
+6
-1
fileobject.c
Objects/fileobject.c
+3
-1
No files found.
Doc/lib/libstdtypes.tex
Dosyayı görüntüle @
849a972f
...
...
@@ -1337,7 +1337,12 @@ flush the read-ahead buffer.
\method
{
seek()
}
operations will be undone at the next write. If the
file is only opened for writing in append mode (mode
\code
{
'a'
}
),
this method is essentially a no-op, but it remains useful for files
opened in append mode with reading enabled (mode
\code
{
'a+'
}
).
opened in append mode with reading enabled (mode
\code
{
'a+'
}
). If the
file is opened in text mode (mode
\code
{
't'
}
), only offsets returned
by
\method
{
tell()
}
are legal. Use of other offsets causes undefined
behavior.
Note that not all file objects are seekable.
\end{methoddesc}
\begin{methoddesc}
[file]
{
tell
}{}
...
...
Objects/fileobject.c
Dosyayı görüntüle @
849a972f
...
...
@@ -1613,7 +1613,9 @@ PyDoc_STRVAR(seek_doc,
"0 (offset from start of file, offset should be >= 0); other values are 1
\n
"
"(move relative to current position, positive or negative), and 2 (move
\n
"
"relative to end of file, usually negative, although many platforms allow
\n
"
"seeking beyond the end of a file).
\n
"
"seeking beyond the end of a file). If the file is opened in text mode,
\n
"
"only offsets returned by tell() are legal. Use of other offsets causes
\n
"
"undefined behavior."
"
\n
"
"Note that not all file objects are seekable."
);
...
...
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