Py2Exe and Threading

ellisjb at my-deja.com ellisjb at my-deja.com
Mon Aug 23 17:23:38 EDT 2004


Lad wrote:
> Does anyone use Py2exe for a script that uses threading modul.
> In have a main thread and another in which I use smtplib to send
email
> while the main thread is running.
> Under Python it works well but after compilation into exe it hangs(
> freezes) in the thread where I send email with smtplib.

Sounds like you have a race condition that for whatever reason you're
lucky enough not to hit during interpretation.  Use appropriate locks;
I use py2exe on an application that uses many threads and have no
problems.

-Jonathan




More information about the Python-list mailing list