[Python-checkins] peps: Added rationale for functional API defaulting to 1 as the start.

ethan.furman python-checkins at python.org
Sat Jun 29 04:32:49 CEST 2013


http://hg.python.org/peps/rev/7c185dda44ac
changeset:   4967:7c185dda44ac
user:        Ethan Furman <ethan at stoneleaf.us>
date:        Fri Jun 28 19:32:40 2013 -0700
summary:
  Added rationale for functional API defaulting to 1 as the start.

files:
  pep-0435.txt |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/pep-0435.txt b/pep-0435.txt
--- a/pep-0435.txt
+++ b/pep-0435.txt
@@ -467,6 +467,10 @@
     ...   cat = 3
     ...   dog = 4
 
+The reason for defaulting to ``1`` as the starting number and not ``0`` is
+that ``0`` is ``False`` in a boolean sense, but enum members all evaluate
+to ``True``.
+
 
 Proposed variations
 ===================

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list