Skip to content
Opensource internals
  • Posts

Namespace

CPython's SimpleNamespace Implementation in C

Oct 20, 2026 7 min read Jay Hubbert

Python’s types.SimpleNamespace looks like a tiny “bag of attributes” class, but in CPython 3.15 it is a real C type, _PyNamespace_Type, defined in Objects/namespaceobject.c. There …

PythonCpythonInternalsNamespace

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·