python3 -O file.py didn't create file.pyo

Viewed 1746

I wrote a simple script test.py, containing:

print('hello')

and then use python -O test.py to run it. I expected this to create a test.pyo file but it did not.

My version is Python 3.5.2. Why was no cache file created?

1 Answers
Related