From 465e6c61eb4a9c144a430af9d3fa633a74db42ff Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 17 Oct 2021 09:37:37 -0400 Subject: [PATCH] PEP 663: Fix typos and creation date --- pep-0663.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pep-0663.txt b/pep-0663.txt index e02b998d419..51f160080d6 100644 --- a/pep-0663.txt +++ b/pep-0663.txt @@ -7,7 +7,7 @@ Discussions-To: python-dev@python.org Status: Draft Type: Informational Content-Type: text/x-rst -Created: 23-Feb-2013 +Created: 30-Jun-2021 Python-Version: 3.11 Post-History: 20-Jul-2021 Resolution: @@ -63,7 +63,7 @@ str() output of each should be its inherent value; e.g. if ``Color`` is an Note that format() already produces the correct output in 3.10, only str() needs updating. -As much as possible, the ``str()`, ``repr()``, and ``format()`` of enum members +As much as possible, the ``str()``, ``repr()``, and ``format()`` of enum members should be standardized across the standard library. The repr() of Flag currently includes aliases, which it should not; fixing that @@ -73,7 +73,7 @@ will, of course, already change its ``repr()`` in certain cases. Specification ============= -There a three broad categories of enum usage: +There are three broad categories of enum usage: - simple: Enum or Flag a new enum class is created with no data type mixins @@ -93,7 +93,7 @@ There are also two styles: ``str()`` (where appropriate) - global: the enumeration members are copied into their module's global - namespcae, and their module name shows in their ``repr()`` and ``str()`` + namespace, and their module name shows in their ``repr()`` and ``str()`` (where appropriate) Some sample enums::