incorporate feedback
Steve Dower: updated Abstract Jelle Zijlstra: removed blank lines from table
This commit is contained in:
parent
e6b13b8b9e
commit
ce2b901d7d
10
pep-0663.txt
10
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(3): RED|GREEN> | Color.RED|Color.GREEN | Color.RED|Color.GREEN |
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| user mixed | 3.10 | | | 1 | <Grey.WHITE: 1> | | 1 |
|
||||
| +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| | new | | | Grey.WHITE | <Grey(1): WHITE> | | Grey.WHITE |
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| int drop-in | 3.10 | | Hue.LIGHT | | <Color.RED|GREEN: 3> | Color.RED|GREEN | |
|
||||
| +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| | new | | -1 | | <Color(3): RED|GREEN> | 3 | |
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| global | 3.10 | <Hue.LIGHT: -1> | Hue.LIGHT | Hue.LIGHT | <Color.RED|GREEN: 3> | 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 | Grey.WHITE | Grey.WHITE | <Grey.WHITE: 1> | Grey.WHITE | 1 |
|
||||
| +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| | new | tools.WHITE | WHITE | WHITE | tools.WHITE | WHITE | WHITE |
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
+-------------+----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| int drop-in | 3.10 | <Hue.LIGHT: -1> | Hue.LIGHT | | <Color.RED|GREEN: 3> | Color.RED|GREEN | |
|
||||
| +----------+-----------------+------------+-----------------------+-----------------------+------------------------+-----------------------+
|
||||
| | new | tools.LIGHT | -1 | | tools.RED|tools.GREEN | 3 | |
|
||||
|
|
Loading…
Reference in New Issue