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

How "import" and "from" work?

  • import
  1. Find the file to load.
  2. Compile to bytecode if necessary and save the bytecode if possible.
  3. Run the code of the file loaded.
  4. Copy names from the imported module to the importing namespace.