'break' Causes Execution of Procedure?

Peter Hansen peter at engcorp.com
Wed Aug 11 13:53:56 EDT 2004


Scott Brady Drummonds wrote:

> I should also point out that the second time that the program's execution
> reaches the 'break' statement in the 'main' procedure, I get the following
> cryptic error message:
> 
> <quote>
> DEBUG: advancing both simulators to 20178
> DEBUG: encountered EOFError; breaking loop
> XXX lineno: 109, opcode: 0
> Traceback (most recent call last):
>   File "test.py", line 135, in ?
>     main(sys.argv[1])
>   File "test.py", line 109, in main
>     break
> SystemError: unknown opcode
> </quote>
> 
> What's going on here?

Scrambled .pyc file?  Try deleting all .pyc files in the folder
and rerun.  (Just a thought.)



More information about the Python-list mailing list