<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 5 October 2016 at 20:55, Yury Selivanov <span dir="ltr"><<a href="mailto:yselivanov.ml@gmail.com" target="_blank">yselivanov.ml@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Speaking of, I'm not much of a C hacker, and messing with CPython internals<br>
is a little daunting. If anyone wants to take this on, you have my<br>
blessing. I also may take a shot at implementing this idea in the next<br>
couple weeks when I have some time.<br>
</blockquote>
<br></span>
It would help if you could create an issue and write exhaustive unittests (or at least specifying how exactly the patch should work for all corner cases).  Someone with the knowledge of CPython internals will later add the missing C code to the patch.<span class="HOEnZb"><font color="#888888"><br>
<br>
Yury</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div></div>I agree with Yury here. There are corner cases (like what to do with classmethods etc). If behaviour for all of them are specified, it would be quite straightforward to implement this.<br><br>--<br></div><div class="gmail_extra">Ivan<br><br></div></div>