Stefan Behnel added the comment:

This patch removes the type check from Signature.from_function() and cleans up 
the type tests in signature() to use whatever the inspect module defines as 
isfunction() and isbuiltin(), so that it becomes properly monkey-patchable.

It also adds a test that makes sure the signature relies only on the four 
relevant special attributes, not on the type of the object being inspected.

----------
keywords: +patch
nosy: +benjamin.peterson, ncoghlan
Added file: http://bugs.python.org/file29003/inspect_sig.patch

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

Reply via email to