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
ecd2afa4
Kaydet (Commit)
ecd2afa4
authored
Şub 05, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5031: fix Thread.daemon property docs.
üst
85c5ccfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
threading.rst
Doc/library/threading.rst
+6
-5
No files found.
Doc/library/threading.rst
Dosyayı görüntüle @
ecd2afa4
...
@@ -210,7 +210,7 @@ changed through the :attr:`name` attribute.
...
@@ -210,7 +210,7 @@ changed through the :attr:`name` attribute.
A thread can be flagged as a "daemon thread". The significance of this flag is
A thread can be flagged as a "daemon thread". The significance of this flag is
that the entire Python program exits when only daemon threads are left. The
that the entire Python program exits when only daemon threads are left. The
initial value is inherited from the creating thread. The flag can be set
initial value is inherited from the creating thread. The flag can be set
through the :attr:`daemon`
attribute
.
through the :attr:`daemon`
property
.
There is a "main thread" object; this corresponds to the initial thread of
There is a "main thread" object; this corresponds to the initial thread of
control in the Python program. It is not a daemon thread.
control in the Python program. It is not a daemon thread.
...
@@ -332,10 +332,11 @@ impossible to detect the termination of alien threads.
...
@@ -332,10 +332,11 @@ impossible to detect the termination of alien threads.
.. attribute:: Thread.daemon
.. attribute:: Thread.daemon
The thread's daemon flag. This must be set before :meth:`start` is called,
A boolean value indicating whether this thread is a daemon thread (True) or
otherwise :exc:`RuntimeError` is raised.
not (False). This must be set before :meth:`start` is called, otherwise
:exc:`RuntimeError` is raised. Its initial value is inherited from the
The initial value is inherited from the creating thread.
creating thread; the main thread is not a daemon thread and therefore all
threads created in the main thread default to :attr:`daemon` = ``False``.
The entire Python program exits when no alive non-daemon threads are left.
The entire Python program exits when no alive non-daemon threads are left.
...
...
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