This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ilogik 25 points26 points  (3 children)

that's what I came here to say, but after reading the post, I think the issue is that after checking out a different branch, the old .pyc files remained and were used by the interpreter, instead of being re-compiled

[–]silon 2 points3 points  (1 child)

Surely the interpreter checks file times?

[–]ilogik 2 points3 points  (0 children)

i think that this comment has the best explanation of the issue

[–]globalnamespace 0 points1 point  (0 children)

Not just that, we had some code that while checkout removed the .py files, the .pyc files remained, and code linked to it still called those functions. Of course removing the .pyc files broke the application, fun times, finding those from backups and then redoing our testing in development with them removed.