[Tutor] Trying to prevent ftplib from locking my script
Kent Johnson
kent37 at tds.net
Wed Oct 5 12:10:55 CEST 2005
Andrew P wrote:
> Normally I wouldn't pipe up here because threads really can be very
> tricky. But check out:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/435883
>
> I use this recipe, originally from "Python in a Nutshell", all the time,
> to solve exactly your problem. Slow network stuff that I don't have
> to/want to babysit.
There are also several recipes showing how to use a worker thread from a GUI program, for example this one:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965
Kent
More information about the Tutor
mailing list