On Feb 23, 2013, at 04:02 PM, Stefan Krah wrote:

>Hmm. I think this limits interoperation with C libraries and prototyping
>C code.

As for flufl.enums, it doesn't really, because while items are not ints they
are interoperable with ints.

>>> from flufl.enum import make
>>> Colors = make('Colors', 'red green blue'.split())
>>> int(Colors.green)
2
>>> 7 + int(Colors.green)
9

Cheers,
-Barry
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to