<div dir="ltr">On 12 February 2013 07:11, Tim Delaney <span dir="ltr"><<a href="mailto:timothy.c.delaney@gmail.com" target="_blank">timothy.c.delaney@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>v = 1</div><div><br></div><div>class MyEnum(Enum):</div><div>
A, B</div><div> other_attr = (v,)</div><div><br></div><div>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></blockquote><div><br></div><div style>Too early in the morning. The above would avoid the whole _EnumProxy because 'v' would be successfully looked up in the global namespace. But I may still get rid of some instances of _EnumProxy.</div>
<div style><br></div><div style>Tim Delaney </div></div></div></div>