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 vstinner
Recipients casevh, josh.r, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, vstinner, yselivanov, zbyrne
Date 2016-02-03.17:05:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwaARXgeGZbZ_BwB0tiSt38f6ewaG43WNPr+Jzups-FKYQ@mail.gmail.com>
In-reply-to <1454518824.58.0.481862737212.issue21955@psf.upfronthosting.co.za>
Content
> python -m timeit  "sum([x * x * 1 for x in range(100)])"

If you only want to benchmark x*y, x+y and list-comprehension, you
should use a tuple for the iterator.
History
Date User Action Args
2016-02-03 17:05:22vstinnersetrecipients: + vstinner, rhettinger, mark.dickinson, pitrou, casevh, serhiy.storchaka, yselivanov, josh.r, zbyrne
2016-02-03 17:05:22vstinnerlinkissue21955 messages
2016-02-03 17:05:22vstinnercreate