This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jstasiak
Recipients jstasiak
Date 2013-09-08.16:00:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378656031.3.0.527824204676.issue18975@psf.upfronthosting.co.za>
In-reply-to
Content
This patch includes:
* making code more PEP8-compatible and refactoring it a bit
* printing number of loops per second when using command line interface
* using thousands separators when printing numbers of loops (also in command line interface)
* changing examples in the module documentation

The output is changed from this:

    10000 loops, best of 3: 40.3 usec per loop

to that:

    10,000 loops, best of 3: 34.6 usec per loop, 28,870.783/s

I'm still not sure about details of "28,870.783/s" part:
* whether it should always include the fractional part (in this example it doesn't make any sense)
* maybe it should say "loops/s" rather than just "/s"
History
Date User Action Args
2013-09-08 16:00:31jstasiaksetrecipients: + jstasiak
2013-09-08 16:00:31jstasiaksetmessageid: <1378656031.3.0.527824204676.issue18975@psf.upfronthosting.co.za>
2013-09-08 16:00:31jstasiaklinkissue18975 messages
2013-09-08 16:00:31jstasiakcreate