Article:
  Mod_python's PSP: Python Server Pages
Subject:   req.write new page
Date:   2007-08-16 07:34:57
From:   SijmenSP
If is use
req.write in a loop
for writing out textual information the new information is appended to the information just written


for example the following script:


def index(req):
import time
req.content_type = "text/html"
for i in range(10)
time.sleep(1)
req.write(str(i))


will result in this:
0123456789
Is it possible to empty the page between every req.write so each number appears on it's own?