bpo-36895: Undocument removed time.clock by Carreau · Pull Request #13286 · python/cpython
`time.clock` has been removed; undocument it and add its removal in the what's new.
| Python 3.3: use :func:`os.popen` instead. | ||
|
|
||
| * The function :func:`time.clock` has been removed, it was deprecated since Python | ||
| 3.3: use :func:`time.perf_counter` or :func:`time.process_time` instead. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, you should copy-paste the end of the sentence :-) Add: ", depending on your requirements, to have a well defined behaviour".
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. I'm the original author of "behaviour" spelling. I have been told in the meanwhile that "behaviour" is the UK spelling, but Python doc prefers US spelling: "behavior" ;-)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.
Thanks.
Thanks for removing time.clock. I was trying to remove it since Python 3.3. I'm the one who deprecated it when I designed and implemented the PEP 418 ;-)
Carreau
deleted the
undocument-time-clock
branch
Always happy to cleanup deprecated features, and have something simpler. I always believe that having a nice, coherent and informative messages with a clear policies and path forward help users adopt new version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters