[issue21117] inspect.signature: inaccuracies for partial functions

Yury Selivanov report at bugs.python.org
Tue Apr 1 17:55:29 CEST 2014


Yury Selivanov added the comment:

> Although, it looks like it's not something that partial is doing, it seems like this call logic is implemented somewhere way deeper.

Forget about what I said.

Yes, it's a "bug" in partial. Fixing it, will require having the code from "Signature.bind" reflected to C -- IOW you need to introspect the callable, get information about its parameters, and then compute the actual args & kwargs. Which will make functools.partial much much slower.

----------

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


More information about the Python-bugs-list mailing list