PEP 520: Resolve dangling hyphens (#3358)

This commit is contained in:
Adam Turner 2023-09-01 19:44:48 +01:00 committed by GitHub
parent ee2f31e163
commit eaa4742315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -37,8 +37,8 @@ This allows introspection of the original definition order, e.g. by
class decorators.
Additionally, this PEP requires that the default class definition
namespace be ordered (e.g. ``OrderedDict``) by default. The long-
lived class namespace (``__dict__``) will remain a ``dict``.
namespace be ordered (e.g. ``OrderedDict``) by default. The
long-lived class namespace (``__dict__``) will remain a ``dict``.
Motivation
@ -185,10 +185,10 @@ the well-worn precedent found in Python. Per Guido::
Also, note that a writeable ``__definition_order__`` allows dynamically
created classes (e.g. by Cython) to still have ``__definition_order__``
properly set. That could certainly be handled through specific class-
creation tools, such as ``type()`` or the C-API, without the need to
lose the semantics of a read-only attribute. However, with a writeable
attribute it's a moot point.
properly set. That could certainly be handled through specific
class-creation tools, such as ``type()`` or the C-API, without the need
to lose the semantics of a read-only attribute. However, with a
writeable attribute it's a moot point.
Why not "__attribute_order__"?