Threading legality/morality

Aahz Maruch aahz at
Mon Mar 26 17:31:11 CEST 2001

In article <fsDv6.1247$NR.100201 at>,
Syver Enstad <syver at> wrote:
>How is calling print from more than one thread looked upon?

Depends what you're trying to do.  If it's debugging output and if you
concatenate strings before trying to do a print (don't use multiple
prints in succession), you're safe.  Anything other than that is
probably risky -- but unlikely to do actual damage (you'll just get
messed up output).
                      --- Aahz  <*>  (Copyright 2001 by aahz at

Androgynous poly kinky vanilla queer het Pythonista
Hugs and backrubs -- I break Rule 6

"I won't accept a model of the universe in which free will, omniscient
gods, and atheism are simultaneously true."  -- M

More information about the Python-list mailing list