Python Execution & Memory Model

Unit 1: Core Foundations & Text · 7 min read

Why variables are labels on heap objects, how == differs from is, truthiness rules, and why mutating an alias surprises beginners.

Key Concepts

  • Name binding vs C-style memory boxes
  • Value equality (==) vs object identity (is)
  • Mutable vs immutable built-in types
  • Short-circuit boolean operators returning operands

Official Python Docs

Back to Python Notes Hub