On Apr 10, 10:44 am, azer <
a...@kodfabrik.com> wrote:
> Hi,
>
> I'm trying to use time.sleep and stdout.flush commands but it doesn't
> work.Here is the code:
>
> self.response.out.write('Hello')
> sys.stdout.flush()
> time.sleep(3)
> self.response.out.write(' world!')
>
> When I run this code appengine waits 3 seconds and prints "hello
> world!" but it should print "hello" before waiting.How can i solve
> this problem?
App Engine does not support streaming responses, so you won't be able
to do this. Everything printed to stdout is buffered, then sent when
the handler returns. (This is true for App Engine in general, not
just webapp.)
-- Dan