[issue1040026] os.times() is bogus
Malte Helmert
report at bugs.python.org
Sat Feb 23 16:55:27 CET 2008
Malte Helmert added the comment:
I'm attaching a patch against trunk that fixes the problem for me
(os_times.PATCH).
This uses the sysconf values when HAVE_SYSCONF is defined, and otherwise
falls back on the old behaviour (use HZ if that is defined, 60
otherwise).
I'm not sure if this is stylistically ok (#ifdefs inside a function,
etc.), so I'd appreciate comments.
Should I add a test case for the test suite?
Added file: http://bugs.python.org/file9501/os_times.PATCH
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1040026>
_____________________________________
More information about the Python-bugs-list
mailing list