Muhammad Tauqir Ahmad added the comment:

Yes I understand your change and other possible changes will fix the 
reproducer. I am already using a different workaround in my code.

The issue is about `inspect.getsource()` having incorrect behavior (or at least 
inaccurate error message) and MethodType able to be constructed from another 
method leading to strange undocumented behavior (as far as I can tell).

I do not know what the correct resolution is to this issue which is why I 
posted this here so someone can suggest/approve a resolution and I can submit a 
patch once something is decided.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to