Output buffer
Cesar D. Rodas
saddor at gmail.com
Sun Dec 23 13:09:46 EST 2007
On 22/12/2007, Fredrik Lundh <fredrik at pythonware.com> wrote:
>
> Cesar D. Rodas wrote:
>
> > I am newbie in Python, but I like it very much.
> >
> > Right now I am having a problem, I am working with mod_python in apache.
> > What I needing is a stdout buffering, that means that everything that I
> > send to stdout keep it in a variable, then flush it and clear.
>
> plug in a StringIO instance on sys.stdout, or use (or adapt) a library
> designed for this purpose:
>
> http://www.mnot.net/cgi_buffer/
hum, seems working right if I'll code but what about if I want to print the
content of the function "help()" (which print and return nothing) into a
website?
Can I inherit the class system and override the output?
</F>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Best Regards
Cesar D. Rodas
http://www.cesarodas.com
http://www.thyphp.com
http://www.phpajax.org
Phone: +595-961-974165
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071223/4f08ce51/attachment.html>
More information about the Python-list
mailing list