Jan-25-2019, 11:59 PM
What is the full text of the error? Is it not giving you any indication of where in the text file the error is, or is it just pointing to the exec statement? If it's pointing to the exec statement, try running the data file as a Python program and seeing where the problem is. I mean, if it can be read by exec, it's just Python code, right?
Personally, I think the problem is using exec. I expect coming up with a file format for your data, and some code that can read and write that format, is going to be better in the long run than relying on exec to solve all your problems. It will certainly make it easier to find problems like this.
Personally, I think the problem is using exec. I expect coming up with a file format for your data, and some code that can read and write that format, is going to be better in the long run than relying on exec to solve all your problems. It will certainly make it easier to find problems like this.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures