Need an identity operator because lambda is too slow

Raymond Hettinger python at rcn.com
Sun Feb 18 01:19:41 EST 2007


[Deron Meranda
>]  I'm looking for something in
> Python which would act like an identity operator, or I-combinator: a
> do-nothing function.  The best I know of is:  (lambda x: x), but it is
> not ideal.

File a feature request on SourceForge and assign to me.  This has come
up a couple of times and would be trivial to implement in the operator
or functools modules.

Raymond




More information about the Python-list mailing list