<div dir="ltr">And I've just realised that my enums will be broken when assigning a literal containing a name lookup e.g.<div><br></div><div style>v = 1</div><div><br></div><div style>class MyEnum(Enum):</div><div style>
A, B</div><div style> other_attr = (v,)</div><div style><br></div><div style>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.</div>
<div style><br></div><div style>Tim Delaney</div></div>