Hi all,
I would like to add that I don't believe that discoverability is
always better in the `builtins' module.
I personally had the experience of going over itertools, where
I found 'zip_longest', but I couldn't find a 'zip_shortest'.
Only after some googling I found out it was called `zip' and it lived in
`builtins'.
Stephan
2016-09-20 7:23 GMT+02:00 Stefan Behnel
אלעזר 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@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/