Ethan Furman added the comment:

Okay, in a perfect world that _enum_to_int function would be unnecessary, but 
as Serhiy pointed out the C code is doing pointer comparison, so unless the 
exact same int is passed in it does not work.

I'm looking at adjusting the C code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21076>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to