Collect output to string
clp2 at rebertia.com
Tue Nov 23 21:02:47 CET 2010
On Tue, Nov 23, 2010 at 11:53 AM, Burton Samograd <burton at userful.com> wrote:
> I was wondering if there is any way in python to 'collect output to
> string' as in some lisps/schemes. Output being, printed output to the
> console using print.
Rebind sys.stdout to a StringIO object.
More information about the Python-list