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
09974b4e
Kaydet (Commit)
09974b4e
authored
Ara 08, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Drop double newlines printed in some file iteration examples.
Patch by Steven Kryskalla.
üst
5a2e2b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
errors.rst
Doc/tutorial/errors.rst
+2
-2
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/tutorial/errors.rst
Dosyayı görüntüle @
09974b4e
...
...
@@ -387,7 +387,7 @@ succeeded or failed. Look at the following example, which tries to open a file
and print its contents to the screen. ::
for line in open("myfile.txt"):
print(line)
print(line
, end=""
)
The problem with this code is that it leaves the file open for an indeterminate
amount of time after this part of the code has finished executing.
...
...
@@ -397,7 +397,7 @@ used in a way that ensures they are always cleaned up promptly and correctly. ::
with open("myfile.txt") as f:
for line in f:
print(line)
print(line
, end=""
)
After the statement is executed, the file *f* is always closed, even if a
problem was encountered while processing the lines. Objects which, like files,
...
...
Misc/ACKS
Dosyayı görüntüle @
09974b4e
...
...
@@ -592,6 +592,7 @@ Cédric Krier
Hannu Krosing
Andrej Krpic
Ivan Krstić
Steven Kryskalla
Andrew Kuchling
Dave Kuhlman
Vladimir Kushnir
...
...
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