Python not interpreting changed files, using obsolete .pyc

后端 未结 3 1467
醉话见心
醉话见心 2021-01-15 08:18

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:47

    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.

提交回复
热议问题