Ubuntu Forums Archive Viewer

[SOLVED] .pyc vs. .pyo, what's the difference

Archived thread 1001524 from Programming Talk. Markdown source: Programming_Talk/thread_1001524_[SOLVED]_.pyc_vs._.pyo,_what's_the_difference.md

Original URL About this archive
#1

In Python, I've noticed that there are two different file extensions for compiled scripts. Is there a reason why there are two? What's the difference?

#2

_This_ page from Python in a Nutshell on Google Book Search might be able to help you.

#3

Thanks for the info Rabbitman. I'm not exactly sure what optimized code means though.

#4

Take a look at _this_ excerpt from An Introduction to Python. It explains in greater detail about the generation of optimized code in Python.

#5

Thanks again, that clears things up for me.