[Python-Dev] lament for the demise of unbound methods

"Martin v. Löwis" martin at v.loewis.de
Fri Jul 5 12:07:15 CEST 2013


Am 05.07.13 11:23, schrieb Michael Foord:
> I've also lamented the death of bound methods in Python 3 for mock
> "autospeccing". Autospec introspects objects and provides mock
> objects with the same attributes - and with the same method
> signatures.

I wonder why you need to figure out the signatures in advance.
Can you just wait until the function is actually used, and then
process the parameters as you get them?

Regards,
Martin


More information about the Python-Dev mailing list