Thanks Nick (and Koen). I think I'll keep using StringIO since that way I
can continue to test the code with unit tests instead of resorting to
heavier tests with GAEUnit.  - Issac
On Tue, Jun 2, 2009 at 9:59 AM, Nick Johnson (Google) <
[email protected]> wrote:

> Hi Isaac,
>
> Doing this is fine, though you'll want to make sure to set it back
> afterwards (using a finally clause, for example). Bear in mind that if
> you're using the App Engine webapp framework, though, webapp already catches
> and buffers everything you output to the Response object.
>
> -Nick Johnson
>
> On Tue, Jun 2, 2009 at 1:14 AM, Issac Trotts <[email protected]>wrote:
>
>> Can my Python code on App Engine do something like this
>>
>> sio = StringIO.StringIO()
>> sys.stdout = sio...
>>
>> without having to worry that multiple users running hitting the same code
>> might end up seeing each other's results?
>>
>>
>>
>>
>> >>
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to