Reimplementing Python's enum.auto() for compatibility – codereview.stackexchange.com

In Python >= 3.6 there is an enum.auto() function. The auto() function can be used like this: import enum from enum import auto class Fruits(enum.Enum): APPLE = auto() ORANGE = auto() BANANA ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Reimplementing Python's enum.auto() for compatibility – codereview.stackexchange.com"