[issue31803] time.clock() should emit a DeprecationWarning

Alexander Belopolsky report at bugs.python.org
Wed Oct 25 13:07:15 EDT 2017


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

I would like to add my voice to MAL's objections.  I was not aware of time.clock() depreciation before Victor brought this issue to my attention.  time.clock() is a very well-known API eponymous to a venerable UNIX system call.  Its limitations and platform dependencies are very well-known as well.  For someone new to python, seeing time.clock() would probably not require a trip to the library reference, but seeing time.perf_counter() is likely to cause a WTF reaction even from an experienced python developer.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31803>
_______________________________________


More information about the Python-bugs-list mailing list