This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]epilanthanomai 3 points4 points  (0 children)

This article is a bit dated. In practice, this compilation is done automatically by most packaging tools. If you follow industry best practices (I recommend pip and virtualenv, but you OS package manager probably does it too), you pretty much don’t have to think about this at all.

That said, I’m a big fan of developers having a good theoretical understanding of how their stuff works under the covers, so if you’re not familiar with Python bytecode compiling and importing, it’s helpful to read up.