Skip to content

Programming Languages

Explore this section

Python

Notes on Python and CPython internals, covering concurrency, free threading, polymorphism, runtime classes, and Pydantic to explain how familiar language features work.

Browse 3 notes
  • Explain CPython free threading, the GIL, synchronization of shared data, and the differences between threads, processes, isolated interpreters, and asynchronous tasks.

  • Compare CPython and JVM execution, bytecode, memory management, and polymorphism, including Python's method lookup, descriptors, and operator dispatch.

  • Explain Python's runtime class creation, annotations, and dataclasses, and trace how Pydantic builds schemas and calls its Rust validation engine.