Python - Compiled File (Cache)

Card Puncher Data Processing

About

The compiled file of Python.

Location

To speed up loading modules, Python caches the compiled version of each module in the __pycache__ directory

Format

The name

module.version.pyc

where:

For example, in CPython release 3.3:

  • source: spam.py
  • compiled version: __pycache__/spam.cpython-33.pyc.

This naming convention allows compiled modules from different releases and different versions of Python to coexist.

Documentation / Reference





Discover More
Card Puncher Data Processing
Python - Packages (Archive, Distribution)

in Python Packages (or better Distribution package) are the result of the packaging of a project that may contains one or more (regular) package regular packageregular package A package is a compressed...
Python Version
Python - Version

of This naming convention of compiled files allows compiled modules from different versions of Python to coexist. ...
Card Puncher Data Processing
Python Packaging - Version / Release

and in Python This naming convention of compiled files allows compiled modules from different releases of Python to coexist. All below properties of a build. ie: alias...



Share this page:
Follow us:
Task Runner