jimjjewett at gmail
Mar 19, 2012, 8:51 PM
Issue #10278 -- why not just an attribute?
Georg Brandl posted:
>> + If available, a monotonic clock is used. By default, if *strict* is False,
>> + the function falls back to another clock if the monotonic clock failed or is
>> + not available. If *strict* is True, raise an :exc:`OSError` on error or
>> + :exc:`NotImplementedError` if no monotonic clock is available.
> This is not clear to me. Why wouldn't it raise OSError on error even with
> strict=False? Please clarify which exception is raised in which case.
Passing strict as an argument seems like overkill since it will always
be meaningless on some (most?) platforms. Why not just use a function
attribute? Those few users who do care can check the value of
time.steady.monotonic before calling time.steady(); exceptions raised
will always be whatever the clock actually raises.
If there are still threading problems with my replies, please
email me with details, so that I can try to resolve them. -jJ
Python-Dev mailing list
Python-Dev [at] python