import thread
def yehhh():
print "yeahhh"
if __name__ == "__main__":
print "debut"
thread.start_new(yehhh,())
thread.join
print "la fin"
Alors voila : ce petit bout de code me prend la tête. Je souhaite attendre la fin de mon thread avec (join) pour afficher "la fin".
(vous l'aurez compris c'est une version TRES simplifiée de ma fonction "yeahhh")
MAIS le join n'est pas reconnu.
--> " 'module' object has no attribute 'join'
Oui ca ok, mais je n'arrive pas à trouver la bonne syntaxe.
Merci de votre aide !!

 

 
		
		 
        

 
			
			


 
   


 thread.join en python
 thread.join en python
				 Répondre avec citation
  Répondre avec citation

 
 
 
   
 
Partager