Real Python Tutorials

What Is the __pycache__ Folder in Python?
NEW

What Is the __pycache__ Folder in Python?

In this tutorial, you'll explore Python's __pycache__ folder. You'll learn about when and why the interpreter creates these folders, and you'll customize their default behavior. Finally, you'll take a look under the hood of the cached .pyc files.

May 13, 2024 intermediate python