This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients ethan.furman, josh.r, max
Date 2017-05-31.05:56:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496210200.48.0.610199145867.issue30517@psf.upfronthosting.co.za>
In-reply-to
Content
You didn't instantiate auto; read the docs ( https://docs.python.org/3/library/enum.html#using-automatic-values ): auto is a class, you instantiate it to make instances for use. If you omit the parens, it's just a plain class, not a special value for automatic value assignment.

You want:

    class E(enum.Enum):
        A = enum.auto()
        B = enum.auto()
History
Date User Action Args
2017-05-31 05:56:40josh.rsetrecipients: + josh.r, ethan.furman, max
2017-05-31 05:56:40josh.rsetmessageid: <1496210200.48.0.610199145867.issue30517@psf.upfronthosting.co.za>
2017-05-31 05:56:40josh.rlinkissue30517 messages
2017-05-31 05:56:40josh.rcreate