[mod_python] python print

Gregory (Grisha) Trubetskoy grisha at modpython.org
Mon Jun 9 18:58:42 EST 2003

On Mon, 9 Jun 2003, Jonathan Gardner wrote:

> If you get tired of print >> req, give this a try:
> sys.stdout = req
> print "one"
> print "two"
> print "three"

A word of caution - just like chdir(), this is not thread safe since there
is only one stdout per interpreter which could be executing multiple
threads simutaneously.


More information about the Mod_python mailing list