Question: why this does not print anything:

```
for item in pipe.json["value"]["items"]:
    print item["pubDate"]
```

but this does:

```
for item in pipe.json["value"]["items"]:
   print item["pubDate"] + "\n"
```

p.s. the loop is running inside another loop. 

p.p.s. this is running inside google app engine application.i have looked at http response and it is completely empty in the first case.

Answer: 
It might be a problem with buffering, in which case flushing stdout would help.

```
import sys
sys.stdout.flush()

```
Are you using some sort of wsgi framework, or just trying to write pure CGI code (which is a mistake?)

You probably don't want to be using `print` at all here, but rather using your framework's method of adding to the response (for webapp, `self.response.out.write`). My guess would be that without the extra `\n`, you're writing all of this data to the HTTP headers, and with it you're only losing the first line of your output.