Killing a running thread

Martin v. Loewis martin at v.loewis.de
Thu May 2 14:29:45 EDT 2002


Alexander Skwar <ASkwar at DigitalProjects.com> writes:

> Yes, that's for the easy case of the readline loop.  However, how could
> I break up a file.write() or a map()?

For a map call, you need to check inside the callback function for a
flag. There is no way to get out of a file.write; you may try to use a
non-blocking write operation.

Regards,
Martin




More information about the Python-list mailing list