Usman Ehtesham Gul added the comment:

After discussing with Eric Snow, this case scenario is an edge case. The 
assumption in the inspect module is that __func__ for a MethodType object is a 
function. The MethodType should be used for functions and not methods.

Patch attached for this.

This needs to be documented in the docs (separate ticket will be opened for 
that).

----------
keywords: +patch
nosy: +eric.snow, ueg1990
Added file: http://bugs.python.org/file38928/issue_19956.patch

_______________________________________
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