threading
Sturla Molden
sturla.molden at gmail.com
Wed Apr 9 12:32:53 EDT 2014
Sturla Molden <sturla.molden at gmail.com> wrote:
> 3. It is nice to be able to abort a read or write that hangs (for whatever
> reason). Killing a thread with pthread_cancel or TerminateThread is not
> recommended.
While "graceful timeout" is easy to do on Unix, using fcntl.fcntl or
signal.alarm, on Windows it requires overlapped I/O. This means the normal
Python file objects cannot be used for this purpose on Windows.
Sturla
More information about the Python-list
mailing list