Stopping threads with pending input

Kyle Davis kiledavis en mail.ru
Mar Ene 3 17:29:48 CET 2006


Hola,

no me di cuenta de que era en español, lo siento.
Eso del timeout sería una buena forma de hacerlo.
El problema es que fcntl() está sólo disponible en
Unix, y mi programa es para windows.

Gracias por tu ayuda.


Mensaje original:
------------------------------------------------------------------------------------------------------
Date: Tue, 3 Jan 2006 12:50:24 -0300 
From: "Batista, Facundo" <Facundo.Batista en telefonicamoviles.com.ar>
Subject: RE: [Python-es] Stopping threads with pending input
To: "'kiledavis en mail.ru'" <kiledavis en mail.ru>
Cc: 'La lista de python en castellano' <python-es en aditel.org>

##- Hello, I'm new to this mailing list and I'm new using 
#
#Sorry, but this list is for spanish speakers only...


##- I think the thread won't finish because it's waiting stdin 
##- for bytes to 
##- read.

#You're right. You need to time-out it.


##- My question is, how can I kill the thread or something to 
##- stopping the 
##- program?

#Just time out the sys.stdin.read() (see fcntl,
#http://docs.python.org/dev/lib/module-fcntl.html).




Más información sobre la lista de distribución Python-es