[New-bugs-announce] [issue22749] remove obsolete remark in time.clock() docs

Akira Li report at bugs.python.org
Tue Oct 28 08:36:54 CET 2014

New submission from Akira Li:

time.clock() documentation [1] says:

  this is the function to use for benchmarking Python or timing algorithms.


  Deprecated since version 3.3: The behaviour of this function depends on the platform: use perf_counter() or process_time() instead, depending on your requirements, to have a well defined behaviour.

[1]: https://hg.python.org/cpython/file/a22ef88143b9/Doc/library/time.rst#l127

The first remark is incorrect since 3.3. I've attached a documentation patch that removes it.

assignee: docs at python
components: Documentation
files: docs-time-clock-remove-stale-remark.diff
keywords: patch
messages: 230124
nosy: akira, docs at python
priority: normal
severity: normal
status: open
title: remove obsolete remark in time.clock() docs
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file37048/docs-time-clock-remove-stale-remark.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list