The .pyc
files are created (and possibly overwritten) only when that python file is imported by some other script. If the import is called, Python checks to see if the .pyc
file's internal timestamp is not older than the corresponding .py
file. If it is, it loads the .pyc
; if it isn't or if the .pyc
does not yet exist, Python compiles the .py
file into a .pyc
and loads it.
What do you mean by "stricter checking"?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…