On 04/23/2016 06:21 PM, Michael Selik wrote:
On Sat, Apr 23, 2016 at 9:01 PM Christopher Reimer wrote:
Hmm... What do we use Enum for? :)
You can use Enum in certain circumstances to replace int or str constants.
It can help avoid mistyping mistakes and might help your IDE give
auto-complete suggestions. I haven't found a good use for them myself, but
I'd been mostly stuck in Python 2 until recently.
enum34 is the backport, aenum is the turbo charged version.
https://pypi.python.org/pypi/enum34
https://pypi.python.org/pypi/aenum
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list