[wingide-users] Python shell not printing right?

Wing IDE Support support at wingware.com
Fri Mar 1 20:05:30 EST 2013


On 2/28/13 6:09 PM, Peter Sabaini wrote:
> 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

Currently, Wing's python shell only displays output just before it
displays the next prompt so all of the lines should be printed when the
line iterator is exhausted.  We plan to fix this in the future so that
output is displayed earlier.

Cheers,

John



More information about the wingide-users mailing list