[Python-ideas] Add an identity function

Benjamin Peterson benjamin at python.org
Tue Aug 9 18:36:24 CEST 2011

dag.odenhall at ... <dag.odenhall at ...> writes:

> Yes, I know, it's merely a (lambda x: x), but I find a need for this
> often enough that dedicated, documented function would help
> readability and encourage certain patterns. Whether it should go in
> builtins or functools is debatable.


More information about the Python-ideas mailing list