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 gvanrossum, python-dev, vstinner
Date 2014-01-31.10:25:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It looks like select() and poll() in Linux < 2.6.28 has a resolution of 1/HZ, where HZ can be retrieved from os.sysconf('SC_CLK_TCK'). Since Linux 2.6.28, hrtimers are now used for timeouts.

"High- (but not too high-) resolution timeouts"

"What's in hrtimer.git for 2.6.28"

Attached patch improves the resolution field of selectors.BaseSelector.

By the way, resolution should be a method (selector.resolution()) rather than a property, because we may query the kernel to compute the resolution, as shown in the patch.
Date User Action Args
2014-01-31 10:25:03vstinnersetrecipients: + vstinner, gvanrossum, python-dev
2014-01-31 10:25:03vstinnersetmessageid: <>
2014-01-31 10:25:03vstinnerlinkissue20452 messages
2014-01-31 10:25:01vstinnercreate