Factorials

Jp Calderone exarkun at intarweb.us
Wed Jun 11 14:17:18 CEST 2003


On Wed, Jun 11, 2003 at 02:01:58AM -0700, Anand Pillai wrote:
> Thank you. I did not know that lambda was in fact slower
> than operator methods, but now I do. I encountered lambda's
> in lisp first, where they are preferred over direct function
> calls. Looks like python's lambda is somewhat different.
> 
> Perhaps the language developers should re-implement it in
> C.
> 

  lambda is already implemented in C (at least, in CPython).  The function
objects lambda creates are -not- implement in C, somewhat by definition.

  Jp


-- 
"Minerals are inexhaustible and will never be depleted. A stream of
investment creates additions to proved reserves, a very large in-ground
inventory, constantly renewed as it is extracted... How much was in the
ground at the start and how much will be left at the end are unknown and
irrelevant."  -- Morry Adelman, World Renowned Economist





More information about the Python-list mailing list