<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 September 2017 at 22:21, Ivan Levkivskyi <span dir="ltr"><<a href="mailto:levkivskyi@gmail.com" target="_blank">levkivskyi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra"><div class="gmail_quote">On 14 September 2017 at 22:07, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div><div class="m_2922248390696854860gmail-h5">For comparison's sake, what would the above look like using __class__ assignment?  And what is the performance difference?<br></div></div>
<br></blockquote></div></div><div class="gmail_extra"><br></div></span><div class="gmail_extra">Actually I tried but I can't implement this without module __getattr__</div><span class=""><div class="gmail_extra">so that one can just write:<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">from typing_extensions import allow_forward_references<br>
allow_forward_references('Vert<wbr>ex', 'Edge')</div><div class="gmail_extra"><br></div></span><div class="gmail_extra">Maybe I am missing something, but either it is impossible in principle or</div><div class="gmail_extra">highly non-trivial.<br></div><br></div></blockquote><div><br></div><div>Actually my version does not work either on my branch :-(</div><div>But maybe this is a problem with my implementation.</div><div><br></div><div>--</div><div>Ivan</div><div><br></div><div><br></div></div></div></div>