Glossary coding Term Page

slots

A Python feature that locks down the allowed attribute names to save memory and catch typo

slots #coding#python
Korean version

Related Concepts

Core Idea

slots is A Python feature that locks down the allowed attribute names to save memory and catch typos. It usually makes the most sense alongside Instance, dataclass, Protocol.

Why It Matters Here

Mathbong reuses this term across python posts as shared vocabulary.

Posts Mentioning This Concept