Problems with subclassing enum34

Ethan Furman ethan at stoneleaf.us
Fri Jun 28 11:16:04 EDT 2013


On 06/28/2013 03:48 AM, Thomas Heller wrote:
> trying out the enum34 module.
>
> What I want to create is a subclass of enum.Enum that is also
> based on ctypes.c_int so that I can better use enum instances
> in ctypes api calls.

Have you tried using enum.IntEnum?  If you were able to pass ints in before, IntEnum should work.

--
~Ethan~



More information about the Python-list mailing list