From af9a392e94d8cf7f673b7a0372ae1d7de10ed29b Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 5 Apr 2013 14:23:18 -0400 Subject: [PATCH] ValueError instead of TypeError --- pep-0435.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0435.txt b/pep-0435.txt index 72a540179..4dde8648d 100644 --- a/pep-0435.txt +++ b/pep-0435.txt @@ -299,7 +299,7 @@ You may not define two enumeration values with the same integer value:: ... 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 @@ You also may not duplicate values in derived enumerations:: ... chartreuse = 2 # Oops! Traceback (most recent call last): ... - TypeError: Multiple enum values: 2 + ValueError: Multiple enum values: 2 Enumeration values