[Python-Dev] PEP 435 - ref impl disc 2 (original) (raw)

Glenn Linderman v+python at g.nevcal.com
Tue May 21 08:44:50 CEST 2013


On 5/14/2013 7:16 AM, Ethan Furman wrote:

Thank you for being persistent. You are correct, the value should be an IntET (at least, with a custom new ;). 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.

Gladly. And we now have several more days to have forgotten what we were doing/talking about...

Okay, the value is now an IntET, as expected and appropriate.

Maybe.

I upgraded my ref435.py from yours at https://bitbucket.org/stoneleaf/ref435 (and your test file there references enum.py which is not there).

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.

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.

After instrumenting Enum.new it seems that the member.value is still the constructor parameters...

Maybe I picked up the wrong version of your code?

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.

-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130520/ce30ed9b/attachment.html>



More information about the Python-Dev mailing list