Fastest way to count your iterations?

Skip Montanaro skip at
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

and search for "progress".


More information about the Python-list mailing list