Skip to content
Opensource internals
  • Posts

Genericalias

CPython's types.GenericAlias Implementation in C

Oct 20, 2026 11 min read Jay Hubbert

types.GenericAlias is a five-field C struct wrapping an origin and a tuple of args, with parameters computed lazily and cached under a critical section.

PythonCpythonInternalsGenericaliasTyping

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·