looking for speed-up ideas

Aahz aahz at pythoncraft.com
Tue Feb 4 16:24:45 EST 2003


In article <b1p4nk$qs7$1 at slb9.atl.mindspring.net>,
Andrew Dalke  <dalke at dalkescientific.com> wrote:
>
>   - You do
>       try / int() / except Value Error / long()
>      when I always do long().  It could be that longs are much more
>      expensive than ints.  Also, in newer pythons the int converts
>      to a long as needed so this is no longer needed.

Note that autoconversion is currently slow because it takes a trip
through the warnings module.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach




More information about the Python-list mailing list