[wingide-users] Python shell not printing right?

Peter Sabaini peter at sabaini.at
Thu Feb 28 18:09:16 EST 2013


I seem to be having an issue with using the print statement in the
shell. When running this (from the requests streaming examples, provide
your twitter credentials) in the shell I don't get any output:

import requests
import json

url = 'https://stream.twitter.com/1.1/statuses/sample.json'
r = requests.get(url, stream=True,
                 auth=('someuser', 'sikkrit'))
print r.status_code
for line in r.iter_lines():
    print line

Pasting into a reqular Python shell gets me the expected stream of
twitter statuses.

Version: Python 2.7.3, Wing 4.1.11-1 (rev 28265)


More information about the wingide-users mailing list