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
46334481
Kaydet (Commit)
46334481
authored
Eyl 10, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change instances of 'while 1:' in the docs into 'while True:'.
üst
4c6a140b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
curses.rst
Doc/howto/curses.rst
+1
-1
cgi.rst
Doc/library/cgi.rst
+1
-1
logging.rst
Doc/library/logging.rst
+1
-1
smtplib.rst
Doc/library/smtplib.rst
+1
-1
socket.rst
Doc/library/socket.rst
+2
-2
No files found.
Doc/howto/curses.rst
Dosyayı görüntüle @
46334481
...
...
@@ -377,7 +377,7 @@ value returned to constants such as :const:`curses.KEY_PPAGE`,
:const:`curses.KEY_HOME`, or :const:`curses.KEY_LEFT`. Usually the main loop of
your program will look something like this::
while
1
:
while
True
:
c = stdscr.getch()
if c == ord('p'): PrintDocument()
elif c == ord('q'): break # Exit the while()
...
...
Doc/library/cgi.rst
Dosyayı görüntüle @
46334481
...
...
@@ -142,7 +142,7 @@ attribute::
if fileitem.file:
# It's an uploaded file; count lines
linecount = 0
while
1
:
while
True
:
line = fileitem.file.readline()
if not line: break
linecount = linecount + 1
...
...
Doc/library/logging.rst
Dosyayı görüntüle @
46334481
...
...
@@ -783,7 +783,7 @@ module. Here is a basic working example::
followed by the LogRecord in pickle format. Logs the record
according to whatever policy is configured locally.
"""
while
1
:
while
True
:
chunk
=
self
.
connection
.
recv
(
4
)
if
len
(
chunk
)
<
4
:
break
...
...
Doc/library/smtplib.rst
Dosyayı görüntüle @
46334481
...
...
@@ -322,7 +322,7 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the
# Add the From: and To: headers at the start!
msg = ("From: %s\r\nTo: %s\r\n\r\n"
% (fromaddr, ", ".join(toaddrs)))
while
1
:
while
True
:
try:
line = raw_input()
except EOFError:
...
...
Doc/library/socket.rst
Dosyayı görüntüle @
46334481
...
...
@@ -734,7 +734,7 @@ The first two examples support IPv4 only. ::
s.listen(1)
conn, addr = s.accept()
print('Connected by', addr)
while
1
:
while
True
:
data = conn.recv(1024)
if not data: break
conn.send(data)
...
...
@@ -788,7 +788,7 @@ sends traffic to the first one connected successfully. ::
sys.exit(1)
conn, addr = s.accept()
print('Connected by', addr)
while
1
:
while
True
:
data = conn.recv(1024)
if not data: break
conn.send(data)
...
...
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