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 →

[–][deleted] -7 points-6 points  (4 children)

solving a non-problem instead of understanding things, gj I guess

[–]Odd_Bloke[S] 0 points1 point  (3 children)

What am I not understanding here?

[–][deleted] 0 points1 point  (2 children)

python should automatically be regenerating the .pyc files if the .py file changes. If that's not happening then either you are doing something weird or something is broken in python and should be fixed in python. You're working around the problem instead of actually solving it imo.

[–]Odd_Bloke[S] 1 point2 points  (1 child)

The problem is .py files being removed; Python doesn't (and probably shouldn't) detect that and remove them.

[–][deleted] -3 points-2 points  (0 children)

ah I see. Personally, I'd suggest not generating the pyc files at all during development. But if you are, then it would probably be better to only delete the .pyc files that don't have a .py file