18 Feb
2017
18 Feb
'17
12:58
Stefan Bruens wrote:
Ever wondered what happens if there *are* pyc bytecode files? Python *stats* the python source file, looks for a corresponding bytecode file in the (python2: source; python3: __pycache__) directory, reads the bytecode file header, compares the header timestamp with the change time from the earlier stat call, and executes the byte code. The contents of the source file are *not* read at all.
Right. One more question: Can .pyo files be generated just with the .pyc files being present in source directory? Nevertheless I don't see so much benefit splitting .py and .pyc into different RPMs. Ciao, Michael.