<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<body text="#330033" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/28/2013 9:09 PM, Guido van Rossum
<pre wrap="">(2a. We could also allow Color('red') is Color.red, but that could be
confusing, and we can already do that with getattr(Color, 'red'), and
bool('False') doesn't return False anyway, so let's not do that.)</pre>
Glad you made this pronouncement in this way, because otherwise
there would be ambiguity in the case:<br>
<pre wrap=""> class Color(Enum):
red = 'white'
white = 'blue'
blue = 'red'
although that would no doubt drive the programmers batty anyway... but there may be instances where code is generated that could produce something ambiguous, even though this example is atrocious.