[mod_python] idea for PSP

vincent delft vincent_delft at yahoo.com
Wed Feb 25 06:01:58 EST 2004


Oups .

really really good remark.
100% agreed.

Is there a way to skip this ?
Can we imagine to have a "echo" like PHP ?







--- "Gregory (Grisha) Trubetskoy"
<grisha at modpython.org> wrote:
> 
> 
> On Wed, 25 Feb 2004, vincent delft wrote:
> 
> > adapt the psp.py code by using an "exec" (instead
> of eval) and redirect
> > sys.sdtout to req.write just before the execute.
> 
> "print" is what the original mod_psp.c used,
> actually.
> 
> The problem is that in a multithreaded
> configuration, there is only one
> sys.stdout for multiple requests, so one thread
> cannot assign to it
> without affecting others :-)
> 
> Grisha


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


More information about the Mod_python mailing list