First time here? Check out the FAQ!

Alexander Pavolotsky's profile - activity

2019-04-08 12:44:40 -0500 received badge Famous Question (source)
2019-03-15 09:56:14 -0500 received badge Notable Question (source)
2019-03-15 09:56:14 -0500 received badge Popular Question (source)
2019-03-07 09:02:12 -0500 marked best answer sys.stdin in Wing IDE problem

Hi.Trying to test simple python-program using stdin object.

import sys

w = []
for s in sys.stdin:
    w.append(s)

print(w)

To stop inputing I send EOF with right-button mouse click. But program terminates and nothing print out.This situation is in Wing IDE 101 under MacOS and Windows.

So, I can't run and test any program that uses stdin.

How can I solve this problem?

Thanx

2018-02-22 10:06:00 -0500 commented answer sys.stdin in Wing IDE problem

It's strange, but this program works good.Here is a screenshot.https://www.screencast.com/t/12Tq26cTHghjIn bash I can st

2018-02-22 03:59:00 -0500 asked a question sys.stdin in Wing IDE problem

sys.stdin in Wing IDE problem Hi.Trying to test simple python-program using stdin object. import sys w = [] for s in sy