On 5 Jul 2013, at 12:26, Łukasz Langa <luk...@langa.pl> wrote: > On 5 lip 2013, at 12:07, Martin v. Löwis <mar...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com