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 max
Recipients max
Date 2017-05-31.02:08:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496196488.98.0.634063519366.issue30517@psf.upfronthosting.co.za>
In-reply-to
Content
This probably shouldn't happen:

    import enum

    class E(enum.Enum):
      A = enum.auto
      B = enum.auto

    x = E.B.value
    print(x) # <class 'enum.auto'>
    print(E(x))  # E.A

The first print() is kinda ok, I don't really care about which value was used by the implementation. But the second print() seems surprising.

By the same token, this probably shouldn't raise an exception (it does now):

    import enum

    @enum.unique
    class E(enum.Enum):
      A = enum.auto
      B = enum.auto
      C = object()

and `dir(E)` shouldn't skip `B` in its output (it does now).
History
Date User Action Args
2017-05-31 02:08:09maxsetrecipients: + max
2017-05-31 02:08:08maxsetmessageid: <1496196488.98.0.634063519366.issue30517@psf.upfronthosting.co.za>
2017-05-31 02:08:08maxlinkissue30517 messages
2017-05-31 02:08:08maxcreate