[Python-checkins] peps: ValueError instead of TypeError
barry.warsaw
python-checkins at python.org
Fri Apr 5 20:23:25 CEST 2013
http://hg.python.org/peps/rev/c06008c6fed1
changeset: 4835:c06008c6fed1
user: Barry Warsaw <barry at python.org>
date: Fri Apr 05 14:23:18 2013 -0400
summary:
ValueError instead of TypeError
files:
pep-0435.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0435.txt b/pep-0435.txt
--- a/pep-0435.txt
+++ b/pep-0435.txt
@@ -299,7 +299,7 @@
... butters = 4
Traceback (most recent call last):
...
- TypeError: Multiple enum values: 3
+ ValueError: Multiple enum values: 3
You also may not duplicate values in derived enumerations::
@@ -308,7 +308,7 @@
... chartreuse = 2 # Oops!
Traceback (most recent call last):
...
- TypeError: Multiple enum values: 2
+ ValueError: Multiple enum values: 2
Enumeration values
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list