Python not interpreting changed files, using obsolete .pyc

后端 未结 3 772
遇见更好的自我
遇见更好的自我 2021-01-15 07:55

Using the Google App Engine to develop in python yesterday it stopped running the current version of the script. Instead of executing the most recent version it seems to run

3条回答
  •  难免孤独
    2021-01-15 08:35

    Did you check your system clock? I believe python determine whether to use the .pyc or .py based on timestamps. If your system clock got pushed back, then it would see the .pyc files as newer until the system clock caught up to the last time they were built.

提交回复
热议问题