File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -365,11 +365,10 @@ since it is impossible to detect the termination of alien threads.
365365
366366   .. note ::
367367
368-       Threads are non-daemon by default, meaning they block the program from
369-       exiting until they complete. By setting *daemon * to ``True ``, threads become
370-       daemon and will be forcibly terminated when the main program exits. Use
371-       an explicit call to ``.join() `` on a daemon thread to block
372-       the main program until the thread completes.
368+       In Python, daemon threads do not prevent the program from exiting; they
369+       are forcibly terminated when the main program terminates. A thread can be
370+       designated as a daemon thread by setting *daemon * to ``True ``, and daemon
371+       threads do not require an explicit ``.join() `` call.
373372
374373   .. versionchanged :: 3.3 
375374      Added the *daemon * parameter.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments