From ce2b901d7d33c65e8ef82581ac0359e9af8a6d60 Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Mon, 13 Sep 2021 12:19:29 -0700 Subject: [PATCH] incorporate feedback Steve Dower: updated Abstract Jelle Zijlstra: removed blank lines from table --- pep-0663.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pep-0663.txt b/pep-0663.txt index a272dbe64..f39778cfb 100644 --- a/pep-0663.txt +++ b/pep-0663.txt @@ -16,9 +16,8 @@ Resolution: Abstract ======== -Now that we have a few years experience with Enum usage it is time to update -the ``repr()``, ``str()``, and ``format()`` of the various enumerations by their -intended purpose. +Update the ``repr()``, ``str()``, and ``format()`` of the various Enum types +for consistency and to better match their intended purpose. Motivation @@ -117,27 +116,22 @@ behavior, while the last shows the final result: | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | | | | | Color.RED|Color.GREEN | Color.RED|Color.GREEN | +-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ -+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | user mixed | 3.10 | | | 1 | | | 1 | | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | | | Grey.WHITE | | | Grey.WHITE | +-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ -+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | int drop-in | 3.10 | | Hue.LIGHT | | | Color.RED|GREEN | | | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | | -1 | | | 3 | | +-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ -+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | global | 3.10 | | Hue.LIGHT | Hue.LIGHT | | Color.RED|GREEN | Color.RED|GREEN | | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | tools.LIGHT | LIGHT | LIGHT | tools.RED|tools.GREEN | RED|GREEN | RED|GREEN | +-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ -+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | user mixed | 3.10 | | Grey.WHITE | 1 | | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | tools.WHITE | WHITE | WHITE | tools.WHITE | WHITE | WHITE | +-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ -+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | int drop-in | 3.10 | | Hue.LIGHT | | | Color.RED|GREEN | | | +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+ | | new | tools.LIGHT | -1 | | tools.RED|tools.GREEN | 3 | |