[issue1040026] os.times() is bogus
Martin v. Löwis
report at bugs.python.org
Sun Oct 19 09:12:34 CEST 2008
Martin v. Löwis <martin at v.loewis.de> added the comment:
> compilation indeed breaks if sysconf is available but _SC_CLK_TCK is
> not. My Unix-foo is not sufficient to confidently say that this is
> impossible
To make such a statement, one would need knowledge of all operating
system releases that have ever been made, including releases that didn't
make it to the public. It might be that POSIX mandates _SC_CLK_TCK,
but that would be irrelevant, as systems might chose not to comply with
POSIX in this aspect.
> In the other case you mention, where neither sysconf nor HZ are
> available, the old default of 60 could be used instead.
That would probably be safest, although I could also accept that
os.times becomes unavailable on such a system.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1040026>
_______________________________________
More information about the Python-bugs-list
mailing list