Re: [Tutor] how to debug python script which is a parameter of first

2015-11-18 Thread Alan Gauld
On 18/11/15 00:48, John Spitz wrote: Using IDE eclipse with pydev, how do I debug a python script which is the parameter of the first script? ... python3.4 run_parallel_tests.py clickurl.py browsers.json Its almost impossible to say since we don;t know what you re doing in your tests script.

Re: [Tutor] Guessing program with a twist isn't working

2015-11-18 Thread Alan Gauld
On 17/11/15 18:58, Gavin O'Leary wrote: def ask(x): while True: print "I guess %d" % x answer = raw_input("Is that right, too high, or too low?: ") if answer == 'right': print "Lucky me!" sys.exit(0) elif answer == 'too low':

[Tutor] Guessing program with a twist isn't working

2015-11-18 Thread Gavin O'Leary
Hello all, I have been trying to write a program that has the user think of a number between 1 and 1000, and the computer will guess the number in 10 or less tries. It isn’t working there. Here is my code. import sys high = 1000 low = 0 print "Think of a number between 1 and 1000 but don't t

[Tutor] how to debug python script which is a parameter of first

2015-11-18 Thread John Spitz
Hi, Python 3.4 CentOS 6.5 Using IDE eclipse with pydev, how do I debug a python script which is the parameter of the first script? For example I'm writing selenium web driver tests in the cloud with BrowserStack and they have a parallel testing script which is the first python script followin