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 Dennis Sweeney, SD, eryksun, lunixbochs2, miss-islington, ned.deily, paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-06-14.11:11:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623669067.79.0.256028914978.issue41299@roundup.psfhosted.org>
In-reply-to
Content
> I mention the QueryPerformanceFrequency error case here (stack misalignment): https://bugs.python.org/issue41299#msg395237

Do you think that pytime.c has the bug? I don't think so.

> There are three places win_perf_counter_frequency() can fail: https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Python/pytime.c#L974

In theory yes, in practice we got zero error reports. So it sounds like it cannot happen.

I don't think that it's a good pratice to start to add checks in all functions using a clock "just in case" the clock might fail.
History
Date User Action Args
2021-06-14 11:11:07vstinnersetrecipients: + vstinner, paul.moore, pitrou, tim.golden, ned.deily, zach.ware, eryksun, steve.dower, miss-islington, Dennis Sweeney, SD, lunixbochs2
2021-06-14 11:11:07vstinnersetmessageid: <1623669067.79.0.256028914978.issue41299@roundup.psfhosted.org>
2021-06-14 11:11:07vstinnerlinkissue41299 messages
2021-06-14 11:11:07vstinnercreate