<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 5/14/2013 7:16 AM, Ethan Furman
wrote:<br>
</div>
<blockquote cite="mid:51924739.1050803@stoneleaf.us" type="cite">
<blockquote type="cite" style="color: #000000;">Thank you for
being persistent. You are correct, the value should be an IntET
(at least, with a custom __new__ <span class="moz-smiley-s3"
title=";)"><span>;)</span></span>.
<br>
</blockquote>
<br>
You know, when you look at something you wrote the night before,
and have no idea what you were trying to say, you know you were
tired. Ignore my parenthetical remark.
<br>
</blockquote>
<br>
Gladly. And we now have several more days to have forgotten what we
were doing/talking about...<br>
<br>
<blockquote cite="mid:51924739.1050803@stoneleaf.us" type="cite">Okay,
the value is now an IntET, as expected and appropriate.
</blockquote>
<br>
Maybe.<br>
<br>
I upgraded my ref435.py from yours at
<a class="moz-txt-link-freetext" href="https://bitbucket.org/stoneleaf/ref435">https://bitbucket.org/stoneleaf/ref435</a> (and your test file there
references enum.py which is not there).<br>
<br>
My demo1.py still doesn't work. The first 4 lines are fine, but not
the last two. I still cannot do a lookup (via __call__ syntax) by
either int or IntET value.<br>
<br>
You have my old misnamed NEI class in your test file now, and the
tests you use with it work... but you don't have a lookup test. My
demo1 does, and that fails.<br>
<br>
After instrumenting Enum.__new__ it seems that the member.value is
still the constructor parameters... <br>
<br>
Maybe I picked up the wrong version of your code?<br>
<br>
Oh and demo1.py has leftover __new__ and __init__ definitions for
NIE, modeled after your earlier suggestions. Leaving them in causes
everything to be named 'temp'. Taking them out makes things not work
differently.<br>
<br>
<br>
<br>
</body>
</html>