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

Yury Selivanov report at bugs.python.org
Thu Feb 13 23:46:47 CET 2014


Yury Selivanov added the comment:

> I'm actually considering that. Now that Signature.from_function() allows
> function-like types, it appears like it's the easiest solution to add a
> "__signature__" property to cyfunctions that does the necessary "from
> inspect import Signature, return Signature.from_function(self)" dance.

Oh, sound like a big hack.

Stefan, Larry,

Please take a look at the new patch 'sig_cython_latest'

The change is really minimal, I think we can still push this in 3.4.

----------
Added file: http://bugs.python.org/file34072/sig_cython_latest_01.patch

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


More information about the Python-bugs-list mailing list