[Python-checkins] peps: reword complicated sentence
eli.bendersky
python-checkins at python.org
Sat May 4 23:38:50 CEST 2013
http://hg.python.org/peps/rev/f79a03811517
changeset: 4874:f79a03811517
user: Eli Bendersky <eliben at gmail.com>
date: Sat May 04 14:37:56 2013 -0700
summary:
reword complicated sentence
files:
pep-0435.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0435.txt b/pep-0435.txt
--- a/pep-0435.txt
+++ b/pep-0435.txt
@@ -372,10 +372,10 @@
>>> [i for i in range(Shape.square)]
[0, 1]
-For the vast majority of code, ``Enum`` is strongly recommended.
-Since ``IntEnum`` breaks some semantic promises of an enumeration (by
+For the vast majority of code, ``Enum`` is strongly recommended,
+since ``IntEnum`` breaks some semantic promises of an enumeration (by
being comparable to integers, and thus by transitivity to other
-unrelated enumerations), it should be used only in special cases where
+unrelated enumerations). It should be used only in special cases where
there's no other choice; for example, when integer constants are
replaced with enumerations and backwards compatibility is required
with code that still expects integers.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list