It works fine. Thank you

On Oct 19, 11:45 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> > I know I need to read som more manuals, but how could I possibly amend
> > it?
>
> Instead of doing:
>
> print "foo"
> print "bar"
> ...
>
> do:
>
> x = ""
> x += "foo\n"
> x += "bar\n"
> return x
>
> or:
>
> from StringIO import StringIO
> x = StringIO()
> print >>x, "foo"
> print >>x, "bar"
> return x.getdata()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to