Py2Exe and Threading
Roger Binns
rogerb at rogerbinns.com
Mon Aug 23 18:59:21 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.
Tell py2exe it is a console application and see if that makes a
difference. When you tell py2exe that it is a windowed (ie non-
console) app, then the stdout you get is actually a 4k buffer
that throws various exceptions when it fills.
Roger
More information about the Python-list
mailing list