Fastest way to count your iterations?

Skip Montanaro skip at pobox.com
Mon Jul 28 21:44:06 CEST 2003


    Tracy> [ is the modulus operator the quickest way to find out if you're
    Tracy> really at the 1000th item? ]

I would certainly hope it's fast enough.  If it's not, you probably have
more serious performance issues to consider.  It's what I use in my progress
module.  Visit

    http://www.musi-cal.com/~skip/python/

and search for "progress".

Skip





More information about the Python-list mailing list