René's URL Explorer Experiment


Title: PEP 520 – Preserving Class Attribute Definition Order | peps.python.org

Open Graph Title: PEP 520 – Preserving Class Attribute Definition Order | peps.python.org

Description: The class definition syntax is ordered by its very nature. Class attributes defined there are thus ordered. Aside from helping with readability, that ordering is sometimes significant. If it were automatically available outside the class definition th...

Open Graph Description: The class definition syntax is ordered by its very nature. Class attributes defined there are thus ordered. Aside from helping with readability, that ordering is sometimes significant. If it were automatically available outside the class definition th...

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

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/
Python-Dev messagehttps://mail.python.org/pipermail/python-dev/2016-June/145442.html
Abstracthttps://peps.python.org/520#abstract
Motivationhttps://peps.python.org/520#motivation
Backgroundhttps://peps.python.org/520#background
Specificationhttps://peps.python.org/520#specification
Why a tuple?https://peps.python.org/520#why-a-tuple
Why not a read-only attribute?https://peps.python.org/520#why-not-a-read-only-attribute
Why not “__attribute_order__”?https://peps.python.org/520#why-not-attribute-order
Why not ignore “dunder” names?https://peps.python.org/520#why-not-ignore-dunder-names
Why None instead of an empty tuple?https://peps.python.org/520#why-none-instead-of-an-empty-tuple
Why None instead of not setting the attribute?https://peps.python.org/520#why-none-instead-of-not-setting-the-attribute
Why constrain manually set values?https://peps.python.org/520#why-constrain-manually-set-values
Why not hide __definition_order__ on non-type objects?https://peps.python.org/520#why-not-hide-definition-order-on-non-type-objects
What about __slots__?https://peps.python.org/520#what-about-slots
Why is __definition_order__ even necessary?https://peps.python.org/520#why-is-definition-order-even-necessary
Support for C-API Typeshttps://peps.python.org/520#support-for-c-api-types
Compatibilityhttps://peps.python.org/520#compatibility
Changeshttps://peps.python.org/520#changes
Other Python Implementationshttps://peps.python.org/520#other-python-implementations
Implementationhttps://peps.python.org/520#implementation
Alternativeshttps://peps.python.org/520#alternatives
An Order-preserving cls.__dict__https://peps.python.org/520#an-order-preserving-cls-dict
A “namespace” Keyword Arg for Class Definitionhttps://peps.python.org/520#a-namespace-keyword-arg-for-class-definition
A stdlib Metaclass that Implements __prepare__() with OrderedDicthttps://peps.python.org/520#a-stdlib-metaclass-that-implements-prepare-with-ordereddict
Set __definition_order__ at Compile-timehttps://peps.python.org/520#set-definition-order-at-compile-time
Referenceshttps://peps.python.org/520#references
Copyrighthttps://peps.python.org/520#copyright
Abstracthttps://peps.python.org/520#abstract
Motivationhttps://peps.python.org/520#motivation
Backgroundhttps://peps.python.org/520#background
PEP 422https://peps.python.org/pep-0422/
PEP 487https://peps.python.org/pep-0487/
Specificationhttps://peps.python.org/520#specification
Why a tuple?https://peps.python.org/520#why-a-tuple
Why not a read-only attribute?https://peps.python.org/520#why-not-a-read-only-attribute
Why not “__attribute_order__”?https://peps.python.org/520#why-not-attribute-order
Why not ignore “dunder” names?https://peps.python.org/520#why-not-ignore-dunder-names
Why None instead of an empty tuple?https://peps.python.org/520#why-none-instead-of-an-empty-tuple
Why None instead of not setting the attribute?https://peps.python.org/520#why-none-instead-of-not-setting-the-attribute
Why constrain manually set values?https://peps.python.org/520#why-constrain-manually-set-values
Why not hide __definition_order__ on non-type objects?https://peps.python.org/520#why-not-hide-definition-order-on-non-type-objects
What about __slots__?https://peps.python.org/520#what-about-slots
Why is __definition_order__ even necessary?https://peps.python.org/520#why-is-definition-order-even-necessary
Support for C-API Typeshttps://peps.python.org/520#support-for-c-api-types
Compatibilityhttps://peps.python.org/520#compatibility
Changeshttps://peps.python.org/520#changes
Other Python Implementationshttps://peps.python.org/520#other-python-implementations
Implementationhttps://peps.python.org/520#implementation
trackerhttps://github.com/python/cpython/issues/68442
Alternativeshttps://peps.python.org/520#alternatives
An Order-preserving cls.__dict__https://peps.python.org/520#an-order-preserving-cls-dict
A “namespace” Keyword Arg for Class Definitionhttps://peps.python.org/520#a-namespace-keyword-arg-for-class-definition
PEP 422https://peps.python.org/pep-0422/#order-preserving-classes
PEP 487https://peps.python.org/pep-0487/
A stdlib Metaclass that Implements __prepare__() with OrderedDicthttps://peps.python.org/520#a-stdlib-metaclass-that-implements-prepare-with-ordereddict
Set __definition_order__ at Compile-timehttps://peps.python.org/520#set-definition-order-at-compile-time
Referenceshttps://peps.python.org/520#references
Original discussionhttps://mail.python.org/pipermail/python-ideas/2013-February/019690.html
Follow-up 1https://mail.python.org/pipermail/python-dev/2013-June/127103.html
Follow-up 2https://mail.python.org/pipermail/python-dev/2015-May/140137.html
Alyssa (Nick) Coghlan’s concerns about mutabilityhttps://mail.python.org/pipermail/python-dev/2016-June/144883.html
Copyrighthttps://peps.python.org/520#copyright
Abstracthttps://peps.python.org/520#abstract
Motivationhttps://peps.python.org/520#motivation
Backgroundhttps://peps.python.org/520#background
Specificationhttps://peps.python.org/520#specification
Why a tuple?https://peps.python.org/520#why-a-tuple
Why not a read-only attribute?https://peps.python.org/520#why-not-a-read-only-attribute
Why not “__attribute_order__”?https://peps.python.org/520#why-not-attribute-order
Why not ignore “dunder” names?https://peps.python.org/520#why-not-ignore-dunder-names
Why None instead of an empty tuple?https://peps.python.org/520#why-none-instead-of-an-empty-tuple
Why None instead of not setting the attribute?https://peps.python.org/520#why-none-instead-of-not-setting-the-attribute
Why constrain manually set values?https://peps.python.org/520#why-constrain-manually-set-values
Why not hide __definition_order__ on non-type objects?https://peps.python.org/520#why-not-hide-definition-order-on-non-type-objects
What about __slots__?https://peps.python.org/520#what-about-slots
Why is __definition_order__ even necessary?https://peps.python.org/520#why-is-definition-order-even-necessary
Support for C-API Typeshttps://peps.python.org/520#support-for-c-api-types
Compatibilityhttps://peps.python.org/520#compatibility
Changeshttps://peps.python.org/520#changes
Other Python Implementationshttps://peps.python.org/520#other-python-implementations
Implementationhttps://peps.python.org/520#implementation
Alternativeshttps://peps.python.org/520#alternatives
An Order-preserving cls.__dict__https://peps.python.org/520#an-order-preserving-cls-dict
A “namespace” Keyword Arg for Class Definitionhttps://peps.python.org/520#a-namespace-keyword-arg-for-class-definition
A stdlib Metaclass that Implements __prepare__() with OrderedDicthttps://peps.python.org/520#a-stdlib-metaclass-that-implements-prepare-with-ordereddict
Set __definition_order__ at Compile-timehttps://peps.python.org/520#set-definition-order-at-compile-time
Referenceshttps://peps.python.org/520#references
Copyrighthttps://peps.python.org/520#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0520.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0520.rsthttps://github.com/python/peps/blob/main/peps/pep-0520.rst
2025-02-01 08:59:27 UTChttps://github.com/python/peps/commits/main/peps/pep-0520.rst

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


URLs of crawlers that visited me.