<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#330033" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/28/2013 9:09 PM, Guido van Rossum
wrote:<br>
</div>
<blockquote
cite="mid:CAP7+vJJfLHE9OnzFWbRKTug=p1evqeCNwzqafPbNs-uB8zFcgQ@mail.gmail.com"
type="cite">
<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>
</blockquote>
<br>
Glad you made this pronouncement in this way, because otherwise
there would be ambiguity in the case:<br>
<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.
</pre>
</body>
</html>