aahz at panix.com
Thu Aug 2 14:42:16 CEST 2001
In article <9k9635$hli$1 at news.netmar.com>, <news at aegis.mailshell.com> wrote:
>In the following code snippet, is the if statement redundant?
>It seems to make no difference whether its there or not.
>if threading.currentThread().getName() == 'MainThread':
Yes, the "if" is redundant. You might want to use a different method
for synchronizing with the threads, though.
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"activist for accuracy" --SJM
More information about the Python-list