New submission from Michael Wayne Goodman <goodman....@gmail.com>:

The documentation for Python 3.8 and higher still refer to 'clock' as an 
accepted 'name' argument for time.get_clock_info() that returns a namespace 
readable by time.clock(), despite time.clock() being removed since Python 3.8.

See the first bullet point in the function documentation: 
https://docs.python.org/3.8/library/time.html#time.get_clock_info

In Python 3.8, calling time.get_clock_info('clock') raises "ValueError: unknown 
clock", so it seems the bug is only in the documentation.

----------
assignee: docs@python
components: Documentation
messages: 358879
nosy: docs@python, goodmami
priority: normal
severity: normal
status: open
title: time.get_clock_info() documentation still has 'clock' name
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39135>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to