Python speed vs csharp

Andrew Dalke adalke at mindspring.com
Fri Aug 1 00:51:35 EDT 2003


David M. Cooke:
> Here's my best version:
>
> exp = math.exp
> def erfc( x ):

Change that to

def erfc(x, exp = math.exp)

so there's a local namespace lookup instead of a global one.  This
is considered a hack.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list