Just wondering if anyone had my python problem before or knows exactly the root cause:
I'm experimenting making a python v3 version of mechanize (the web scraping library)... still ongoing... did the 2to3 conversions, did some rewrites. Basic code is working. However... I run my small stateless test program once and it works, a side effect is that the python files in the library are compiled. I run the test program again and the program fails... I erase 1 specific compiled python file, rerun the test program and it works again.
The above I can do consistently... First time around the code works, it doesn't work if one library was already compiled, and it works again if I remove the compiled file and run it again.
In PyCharm the test program always works (guessing they compile on the fly).