[issue31803] time.clock() should emit a DeprecationWarning
Serhiy Storchaka
report at bugs.python.org
Thu Oct 26 07:46:04 EDT 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
It is very bad, that the function with such attractive name has different meaning on Windows and Unix. I'm sure that virtually all uses of clock() are broken because its behavior on other platform than used by the author of the code. Adding a DeprecationWarning and finally removing it looks right thing to me. But we should keep it while 2.7 and versions older than 3.3 are in use.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31803>
_______________________________________
More information about the Python-bugs-list
mailing list