On Mon, Feb 07, 2005 at 09:39:11PM +0100, Peter Otten wrote:
> John Lenton wrote:
> >                                         For example, the fastest way
> > to get the factorial of a (small enough) number in pure python is
> > 
> >   factorial = lambda n: reduce(operator.mul, range(1, n+1))
>  
> I see that you are seduced by the beauty of the expression. Otherwise, if
> you would really care for speed:
> 
> [...]

that's cheating: you moved the calculation into the setup. You aren't
timing what you say you are.

-- 
John Lenton ([EMAIL PROTECTED]) -- Random fortune:
I'd rather push my Harley than ride a rice burner.

Attachment: signature.asc
Description: Digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to