(Tried to answer before but it didn't go through) It works fine in
TextWrangler if you choose (from TW's Run submenu) Run in Terminal;
you're still doing your work in TW, just using Terminal for i/o.
Charles Hartman
Professor of English, Poet in Residence
http://cherry.conncoll.edu/cohar
http://
Bob Ippolito wrote:
I don't know a damn thing about TextWrangler, but this works with any
Python that has a working stdin:
while True:
text = raw_input("Input 2 ints and a float: ")
try:
i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float),
text.split())]
except ValueError,
Bob Ippolito wrote:
I don't know a damn thing about TextWrangler, but this works with any
Python that has a working stdin:
while True:
text = raw_input("Input 2 ints and a float: ")
try:
i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float),
text.split())]
except ValueError,
Charles Hartman wrote:
In TextWrangler something like this
while 1:
c = raw_input()
if c == 'quit': break
print c
works fine, if you choose Run in Terminal or Run with Debugger. If you
try to choose Output to New Window, it just quits immediately. But