On Fri, Apr 5, 2013 at 2:16 AM, <mattgrav...@gmail.com> wrote: > Im fairly new to Python. I was trying to run a script using IDLE and it came > back with an error and immediately shut down. After this, every script I > tried to test within IDLE would do the same. I wrote the following script: > > while True > x = input("test") > > It seems simple enough to not be screwed up in any way, but when I hit F5 to > test, it gets red text and shuts down IDLE. It scrolls too fast to see before > shutting down, but I right clicked the text quickly to pause it. This is what > it comes back with: > http://s21.postimg.org/4so8merdz/asdfg.png > > Can anyone tell me what's going on, and why this error comes up regardless of > what script I try to run in IDLE?
It looks like you've made a module called 'random.py', which is shadowing the standard library 'random' module. In that file, you appear to have line numbers - note how line 42 is prefixed with the actual number 42 - and that's causing syntax errors deep inside IDLE. Try renaming or deleting your random.py to see if that fixes it. ChrisA -- http://mail.python.org/mailman/listinfo/python-list