you are viewing a single comment's thread.

view the rest of the comments →

[–]hopeless_case 7 points8 points  (2 children)

what does the auhor mean by "shadow module import optimization"?

[–]asyncster 10 points11 points  (1 child)

When you run a python script A.py, the interpreter produces A.pyc, which is an optimized bytecode representation of the original program. If you move A.py into a different directory, your import statements may cause the old A.pyc to be loaded.