[issue27858] Add identity function to functools

Jáchym Barvínek report at bugs.python.org
Thu Aug 25 08:21:45 EDT 2016


Jáchym Barvínek added the comment:

Java offers an identity function:
https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html

2016-08-25 14:10 GMT+02:00 Steven D'Aprano <report at bugs.python.org>:

>
> Steven D'Aprano added the comment:
>
> Just in case anyone else thinks this is a good idea, here's a patch.
>
> ----------
> keywords: +patch
> Added file: https://bugs.python.org/file44218/identity.patch
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue27858>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27858>
_______________________________________


More information about the Python-bugs-list mailing list