[Python-Dev] lament for the demise of unbound methods (original) (raw)
Michael Foord fuzzyman at voidspace.org.uk
Sat Jul 6 14:49:27 CEST 2013
- Previous message: [Python-Dev] lament for the demise of unbound methods
- Next message: [Python-Dev] lament for the demise of unbound methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5 Jul 2013, at 12:26, Łukasz Langa <lukasz at langa.pl> wrote:
On 5 lip 2013, at 12:07, Martin v. Löwis <martin at v.loewis.de> wrote:
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?
My guess is that Michael's design lets mock objects be introspected as well, i.e. they don't appear as magical as they really are to the user code.
This is also true. Doing it up front has some conveniences - for example dir(...) works correctly.
Michael
-- Best regards, Łukasz Langa
WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev
-- http://www.voidspace.org.uk/
May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html
- Previous message: [Python-Dev] lament for the demise of unbound methods
- Next message: [Python-Dev] lament for the demise of unbound methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]