Reputation: 545
Well,
Is it possible to import "os" module with "os.pyo" or "os.pyc" instead of "os.py"?
Thank you
Upvotes: 2
Views: 3070
Reputation: 602355
Yes. If you started Python without -O
you'll need the .pyc
file, and with -O
you will need .pyo
.
Upvotes: 9