René's URL Explorer Experiment


Title: PEP 820 – PySlot: Unified slot system for the C API | peps.python.org

Open Graph Title: PEP 820 – PySlot: Unified slot system for the C API | peps.python.org

Description: Replace type and module slots with a new structure: a tagged anonymous union with flags. This improves type safety and allows adding new slots in a more forward-compatible way.

Open Graph Description: Replace type and module slots with a new structure: a tagged anonymous union with flags. This improves type safety and allows adding new slots in a more forward-compatible way.

Opengraph URL: https://peps.python.org/pep-0820/

direct link

Domain: peps.python.org

color-schemelight dark
og:typewebsite
og:site_namePython Enhancement Proposals (PEPs)
og:imagehttps://peps.python.org/_static/og-image.png
og:image:altPython PEPs
og:image:width200
og:image:height200
theme-color#3776ab

Links:

Pythonhttps://www.python.org/
PEP Indexhttps://peps.python.org/
Discourse threadhttps://discuss.python.org/t/105552
06-Jan-2026https://discuss.python.org/t/105552
23-Apr-2025https://discuss.python.org/t/105552/24
Abstracthttps://peps.python.org/820#abstract
Backgroundhttps://peps.python.org/820#background
Motivationhttps://peps.python.org/820#motivation
Endorsementshttps://peps.python.org/820#endorsements
Examplehttps://peps.python.org/820#example
Rationalehttps://peps.python.org/820#rationale
Using slotshttps://peps.python.org/820#using-slots
Using slots onlyhttps://peps.python.org/820#using-slots-only
Nested slot tableshttps://peps.python.org/820#nested-slot-tables
Nested “legacy” slot tableshttps://peps.python.org/820#nested-legacy-slot-tables
Fixed-width integershttps://peps.python.org/820#fixed-width-integers
Memory layouthttps://peps.python.org/820#memory-layout
Single ID spacehttps://peps.python.org/820#single-id-space
Deprecation warningshttps://peps.python.org/820#deprecation-warnings
Specificationhttps://peps.python.org/820#specification
New APIhttps://peps.python.org/820#new-api
Changed APIhttps://peps.python.org/820#changed-api
General slot semanticshttps://peps.python.org/820#general-slot-semantics
Flagshttps://peps.python.org/820#flags
Convenience macroshttps://peps.python.org/820#convenience-macros
Nested slot tableshttps://peps.python.org/820#pep820-nested-tables
New slot IDshttps://peps.python.org/820#new-slot-ids
Slot renumberinghttps://peps.python.org/820#slot-renumbering
Soft deprecationhttps://peps.python.org/820#soft-deprecation
Deprecation warningshttps://peps.python.org/820#pep820-hard-deprecations
Backwards Compatibilityhttps://peps.python.org/820#backwards-compatibility
Security Implicationshttps://peps.python.org/820#security-implications
How to Teach Thishttps://peps.python.org/820#how-to-teach-this
Reference Implementationhttps://peps.python.org/820#reference-implementation
Rejected Ideashttps://peps.python.org/820#rejected-ideas
Third-party slot ID allocationhttps://peps.python.org/820#third-party-slot-id-allocation
Avoiding anonymous unionshttps://peps.python.org/820#avoiding-anonymous-unions
Fallback slotshttps://peps.python.org/820#fallback-slots
Open Issueshttps://peps.python.org/820#open-issues
Acknowledgementshttps://peps.python.org/820#acknowledgements
Change Historyhttps://peps.python.org/820#change-history
Copyrighthttps://peps.python.org/820#copyright
Definition slotshttps://docs.python.org/3.15/c-api/slots.html#capi-slots
PEP 1https://peps.python.org/pep-0001/
Abstracthttps://peps.python.org/820#abstract
PyModule_FromSlotsAndSpec()https://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlotsAndSpec
extension export hookhttps://docs.python.org/3.15/c-api/extension-modules.html#extension-export-hook
Backgroundhttps://peps.python.org/820#background
PyType_Spechttps://docs.python.org/3/c-api/type.html#c.PyType_Spec
PyModuleDefhttps://docs.python.org/3/c-api/module.html#c.PyModuleDef
PyType_FromMetaclass()https://docs.python.org/3/c-api/type.html#c.PyType_FromMetaclass
PyModule_FromDefAndSpec()https://docs.python.org/3/c-api/module.html#c.PyModule_FromDefAndSpec
tagged unionshttps://en.wikipedia.org/wiki/Tagged_union
PEP 793https://peps.python.org/pep-0793/
Motivationhttps://peps.python.org/820#motivation
Py_tp_dochttps://docs.python.org/3/c-api/typeobj.html#c.Py_tp_doc
Py_mod_gilhttps://docs.python.org/3/c-api/module.html#c.Py_mod_gil
Py_tp_reprhttps://docs.python.org/3/c-api/typeobj.html#c.Py_tp_repr
Py_mod_gilhttps://docs.python.org/3/c-api/module.html#c.Py_mod_gil
Py_mod_multiple_interpretershttps://docs.python.org/3/c-api/module.html#c.Py_mod_multiple_interpreters
Endorsementshttps://peps.python.org/820#endorsements
Da Woodshttps://discuss.python.org/t/105552/2
Mark Shannonhttps://discuss.python.org/t/105552/4
Victor Stinnerhttps://discuss.python.org/t/105552/19
Examplehttps://peps.python.org/820#example
PEP 465https://peps.python.org/pep-0465/
Rationalehttps://peps.python.org/820#rationale
PEP 793https://peps.python.org/pep-0793/
PyModuleDefhttps://docs.python.org/3/c-api/module.html#c.PyModuleDef
Using slotshttps://peps.python.org/820#using-slots
PEP 697https://peps.python.org/pep-0697/
Using slots onlyhttps://peps.python.org/820#using-slots-only
Nested slot tableshttps://peps.python.org/820#nested-slot-tables
PyType_FromModuleAndSpec()https://docs.python.org/3/c-api/type.html#c.PyType_FromModuleAndSpec
Nested “legacy” slot tableshttps://peps.python.org/820#nested-legacy-slot-tables
Fixed-width integershttps://peps.python.org/820#fixed-width-integers
Memory layouthttps://peps.python.org/820#memory-layout
Single ID spacehttps://peps.python.org/820#single-id-space
Deprecation warningshttps://peps.python.org/820#deprecation-warnings
Py_TPFLAGS_DISALLOW_INSTANTIATIONhttps://docs.python.org/3/c-api/typeobj.html#c.Py_TPFLAGS_DISALLOW_INSTANTIATION
Specificationhttps://peps.python.org/820#specification
New APIhttps://peps.python.org/820#new-api
Changed APIhttps://peps.python.org/820#changed-api
PEP 793https://peps.python.org/pep-0793/
extension module export hookhttps://docs.python.org/3.15/c-api/extension-modules.html#extension-export-hook
PEP 793https://peps.python.org/pep-0793/
PyMODEXPORT_FUNChttps://docs.python.org/3.15/c-api/extension-modules.html#c.PyMODEXPORT_FUNC
General slot semanticshttps://peps.python.org/820#general-slot-semantics
Flagshttps://peps.python.org/820#flags
Nested slot tableshttps://peps.python.org/820#pep820-nested-tables
Convenience macroshttps://peps.python.org/820#convenience-macros
Nested slot tableshttps://peps.python.org/820#pep820-nested-tables
New slot IDshttps://peps.python.org/820#new-slot-ids
Nested slot tableshttps://peps.python.org/820#pep820-nested-tables
Slot renumberinghttps://peps.python.org/820#slot-renumbering
PEP 793https://peps.python.org/pep-0793/#pep793-api-summary
Soft deprecationhttps://peps.python.org/820#soft-deprecation
soft-deprecatedhttps://peps.python.org/pep-0387/#soft-deprecation
Deprecation warningshttps://peps.python.org/820#pep820-hard-deprecations
Backwards Compatibilityhttps://peps.python.org/820#backwards-compatibility
Deprecation warningshttps://peps.python.org/820#pep820-hard-deprecations
Security Implicationshttps://peps.python.org/820#security-implications
How to Teach Thishttps://peps.python.org/820#how-to-teach-this
Reference Implementationhttps://peps.python.org/820#reference-implementation
CPython issue 149044https://github.com/python/cpython/issues/149044
Rejected Ideashttps://peps.python.org/820#rejected-ideas
Rationalehttps://peps.python.org/820#pep820-rationale
Third-party slot ID allocationhttps://peps.python.org/820#third-party-slot-id-allocation
Avoiding anonymous unionshttps://peps.python.org/820#avoiding-anonymous-unions
Fallback slotshttps://peps.python.org/820#fallback-slots
Open Issueshttps://peps.python.org/820#open-issues
Acknowledgementshttps://peps.python.org/820#acknowledgements
Change Historyhttps://peps.python.org/820#change-history
12-Mar-2026https://discuss.python.org/t/105552/12
28-Jan-2026https://discuss.python.org/t/105552/6
06-Jan-2025https://discuss.python.org/t/105552
Copyrighthttps://peps.python.org/820#copyright
Abstracthttps://peps.python.org/820#abstract
Backgroundhttps://peps.python.org/820#background
Motivationhttps://peps.python.org/820#motivation
Endorsementshttps://peps.python.org/820#endorsements
Examplehttps://peps.python.org/820#example
Rationalehttps://peps.python.org/820#rationale
Using slotshttps://peps.python.org/820#using-slots
Using slots onlyhttps://peps.python.org/820#using-slots-only
Nested slot tableshttps://peps.python.org/820#nested-slot-tables
Nested “legacy” slot tableshttps://peps.python.org/820#nested-legacy-slot-tables
Fixed-width integershttps://peps.python.org/820#fixed-width-integers
Memory layouthttps://peps.python.org/820#memory-layout
Single ID spacehttps://peps.python.org/820#single-id-space
Deprecation warningshttps://peps.python.org/820#deprecation-warnings
Specificationhttps://peps.python.org/820#specification
New APIhttps://peps.python.org/820#new-api
Changed APIhttps://peps.python.org/820#changed-api
General slot semanticshttps://peps.python.org/820#general-slot-semantics
Flagshttps://peps.python.org/820#flags
Convenience macroshttps://peps.python.org/820#convenience-macros
Nested slot tableshttps://peps.python.org/820#pep820-nested-tables
New slot IDshttps://peps.python.org/820#new-slot-ids
Slot renumberinghttps://peps.python.org/820#slot-renumbering
Soft deprecationhttps://peps.python.org/820#soft-deprecation
Deprecation warningshttps://peps.python.org/820#pep820-hard-deprecations
Backwards Compatibilityhttps://peps.python.org/820#backwards-compatibility
Security Implicationshttps://peps.python.org/820#security-implications
How to Teach Thishttps://peps.python.org/820#how-to-teach-this
Reference Implementationhttps://peps.python.org/820#reference-implementation
Rejected Ideashttps://peps.python.org/820#rejected-ideas
Third-party slot ID allocationhttps://peps.python.org/820#third-party-slot-id-allocation
Avoiding anonymous unionshttps://peps.python.org/820#avoiding-anonymous-unions
Fallback slotshttps://peps.python.org/820#fallback-slots
Open Issueshttps://peps.python.org/820#open-issues
Acknowledgementshttps://peps.python.org/820#acknowledgements
Change Historyhttps://peps.python.org/820#change-history
Copyrighthttps://peps.python.org/820#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0820.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0820.rsthttps://github.com/python/peps/blob/main/peps/pep-0820.rst
2026-11-06 21:30:28 UTChttps://github.com/python/peps/commits/main/peps/pep-0820.rst

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.