Inside The Python Virtual Machine

Inside The Python Virtual Machine

Obi Ike-Nwosu
Buy on Leanpub

Table of Contents

Inside The Python Virtual Machine

  • 1. Introduction
  • 2. The View From 30,000ft
  • 3. Compiling Python Source Code
    • 3.1 From Source To Parse Tree
    • 3.2 Python tokens
    • 3.3 From Parse Tree To Abstract Syntax Tree
    • 3.4 Building The Symbol Table
    • 3.5 From AST To Code Objects
  • 4. Python Objects
    • 4.1 PyObject
    • 4.2 Dissecting Types
    • 4.3 Type Object Case Studies
    • 4.4 Minting type instances
    • 4.5 Objects and their attributes
    • 4.6 Method Resolution Order (MRO)
  • 5. Code Objects
    • 5.1 Exploring code objects
    • 5.2 Code Objects within other code objects
    • 5.3 Code Objects in the VM
  • 6. Frame Objects
    • 6.1 Allocating Frame Objects
  • 7. Interpreter and Thread States
    • 7.1 The Interpreter state
    • 7.2 The Thread state
  • 8. Intermezzo: The abstract.c Module
  • 9. The evaluation loop, ceval.c
    • 9.1 Putting names in place
    • 9.2 The parts of the machine
    • 9.3 The Evaluation loop
    • 9.4 A sampling of opcodes
  • 10. The Block Stack
    • 10.1 A Short Note on Exception Handling
  • 11. From Class code to bytecode
  • 12. Generators: Behind the scenes.
    • 12.1 The Generator object
    • 12.2 Running a generator
  • Notes
Inside The Python Virtual Machine/Overview
Image

Inside The Python Virtual Machine

Course overview

This books provides a description of the CPython virtual machine and how it executes Python code

13 chapters
Begin reading
Download
The Book

Inside The Python Virtual Machine13 chapters

Begin ›
  1. 1. Introduction

  2. 2. The View From 30,000ft

  3. 3. Compiling Python Source Code

  4. 4. Python Objects

  5. 5. Code Objects

  6. 6. Frame Objects

  7. 7. Interpreter and Thread States

  8. 8. Intermezzo: The abstract.c Module

  9. 9. The evaluation loop, ceval.c

  10. 10. The Block Stack

  11. 11. From Class code to bytecode

  12. 12. Generators: Behind the scenes.

  13. Notes

Advertisement
Advertisement