[Python-ideas] Make partial a built-in
אלעזר
elazarg at gmail.com
Tue Sep 20 03:01:41 EDT 2016
But the foo() finds the function to call, so foo.bind() could be made to
find it too.
בתאריך יום ג׳, 20 בספט' 2016, 08:24, מאת Stefan Behnel <stefan_ml at behnel.de
>:
> אלעזר schrieb am 19.09.2016 um 17:59:
> > If at all, it should be function.bind(). It was discussed and dropped; I
> > don't remember why, but one problem is that it looks like an in-place
> > modification.
>
> IMHO, the main drawback of that solution is that it only works for
> functions and not for any other callable in Python. It would introduce an
> inconsistency without solving the problem in general.
>
> Stefan
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160920/3224452e/attachment.html>
More information about the Python-ideas
mailing list