Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Python modules are compiled

  • pyc
  • pycache

When libraries are loaded they are automatically compiled to .pyc files. This provides moderate code-hiding and load-time speed-up. Not run-time speed-up. Starting from Python 3.2 the pyc files are saved in the __pycache__ directory.