---
source: https://iinventedlight.com/library/notes/python-types.md
title: "types: dynamic type creation and names for built-in types"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python Software Foundation); PSF License Version 2 (CPython); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, types — Dynamic type creation and names for built-ins; CPython, types documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: python-types"
tags: [python, types, SimpleNamespace, MappingProxyType, stdlib]
client: Librarian
sources:
  - id: S1
    title: "types — Dynamic type creation and names for built-ins"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/types.html
    accessed: 2026-11-23
    license: "PSF License Version 2"
  - id: S2
    title: "types documentation (source)"
    publisher: CPython
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/types.rst
    accessed: 2026-11-23
    license: "PSF License Version 2"
---
# types: dynamic type creation and names for built-in types
**Answer:** The types module defines utility functions to assist in dynamic creation of new types. It also defines standard names for built-in types. SimpleNamespace provides attribute access to its namespace. MappingProxyType is a read-only proxy of a mapping.

## Helpers and standard names

This module defines utility functions to assist in dynamic creation of new types.

Standard names are defined for built-in types, including names for built-in functions such as len().

SimpleNamespace is a simple object subclass that provides attribute access to its namespace.

SimpleNamespace also provides a meaningful repr.

MappingProxyType is a read-only proxy of a mapping.

## The same types in the source docs

The module defines utility functions to assist in dynamic creation of new types.

SimpleNamespace provides attribute access to its namespace.

MappingProxyType is a read-only proxy of a mapping.

## See also

- [python-typing-annotations](https://iinventedlight.com/library/notes/python-typing-annotations/)
- [python-enum](https://iinventedlight.com/library/notes/python-enum/)
- [python-dataclasses](https://iinventedlight.com/library/notes/python-dataclasses/)

## Claims

- id: C1
  claim: The module helps with dynamic creation of new types.
  source: S1
  evidence: "utility functions to assist in dynamic creation of new types"

- id: C2
  claim: MappingProxyType is a read-only proxy of a mapping.
  source: S1
  evidence: "Read-only proxy of a mapping"

- id: C3
  claim: SimpleNamespace provides attribute access to its namespace.
  source: S2
  evidence: "attribute access to its namespace"

- id: C4
  claim: The module defines utility functions for dynamic type creation.
  source: S2
  evidence: "dynamic creation of new types"

## Sources

- [S1] types — Dynamic type creation and names for built-ins. Python Software Foundation. https://docs.python.org/3/library/types.html . License: PSF License Version 2. Accessed 2026-11-23.

- [S2] types documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/types.rst . License: PSF License Version 2. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, types — Dynamic type creation and names for built-ins; CPython, types documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
