<p dir="ltr"><br>
On 6 Jul 2013 22:52, "Michael Foord" <<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>> wrote:<br>
><br>
><br>
> On 5 Jul 2013, at 12:26, Łukasz Langa <<a href="mailto:lukasz@langa.pl">lukasz@langa.pl</a>> wrote:<br>
><br>
> > On 5 lip 2013, at 12:07, Martin v. Löwis <<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>> wrote:<br>
> ><br>
> >> I wonder why you need to figure out the signatures in advance.<br>
> >> Can you just wait until the function is actually used, and then<br>
> >> process the parameters as you get them?<br>
> >><br>
> ><br>
> > 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.<br>
> ><br>
><br>
> This is also true. Doing it up front has some conveniences - for example dir(...) works correctly.</p>
<p dir="ltr">Doesn't this really mean that in Py3, introspection APIs need a class *and* an instance of that class for robust analysis of expected descriptor results? (which was technically always true, the removal of unbound methods just makes it significantly more important to handle descriptors with no special behaviour on the class side of things).</p>
<p dir="ltr">And yes, I'm aware that idea poses a significant challenge for correct handling of ABCs :P</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> Michael<br>
><br>
> > --<br>
> > Best regards,<br>
> > Łukasz Langa<br>
> ><br>
> > WWW: <a href="http://lukasz.langa.pl/">http://lukasz.langa.pl/</a><br>
> > Twitter: @llanga<br>
> > IRC: ambv on #python-dev<br>
> ><br>
><br>
><br>
> --<br>
> <a href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a><br>
><br>
><br>
> May you do good and not evil<br>
> May you find forgiveness for yourself and forgive others<br>
> May you share freely, never taking more than you give.<br>
> -- the sqlite blessing<br>
> <a href="http://www.sqlite.org/different.html">http://www.sqlite.org/different.html</a><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>