[issue17159] Remove explicit type check from inspect.Signature.from_function()

Yury Selivanov report at bugs.python.org
Fri Jan 31 20:18:47 CET 2014


Yury Selivanov added the comment:

Third version of the patch is attached (sig_func_ducktype_03.patch).

Changes:

- Toughen the tests for duck-typed function -- do not accept classes
- Added comments to clarify the need of duck-typing
- NEWS item
- what's new item

Stefan, please take a look. I want to make sure, that the fact that we won't accept classes that look like a function, is OK with you.

----------
keywords: +needs review -patch
Added file: http://bugs.python.org/file33836/sig_func_ducktype_03.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17159>
_______________________________________


More information about the Python-bugs-list mailing list