And I've just realised that my enums will be broken when assigning a literal containing a name lookup e.g.

v = 1

class MyEnum(Enum):
    A, B
    other_attr = (v,)

other_attr will have an _EnumProxy instance. But I think I can do away with the _EnumProxy entirely now that I'm using sys._getframe(). Let me try something.

Tim Delaney