classification
Title: timeit documentation should have example with function arguments
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: davidak, docs@python, xtreak
Priority: normal Keywords: easy, patch

Created on 2018-11-01 16:45 by davidak, last changed 2018-11-01 18:42 by davidak.

Pull Requests
URL Status Linked Edit
PR 9787 open davidak, 2018-11-01 18:42
Messages (2)
msg329079 - (view) Author: (davidak) * Date: 2018-11-01 16:45
It is described here: https://www.pythoncentral.io/time-a-python-function/

I have just tested it. Works as expected.

Best would be if timeit supports this natively.
msg329085 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python triager) Date: 2018-11-01 18:16
There is an open PR that adds a similar example. Is it the same as the one you are proposing and I think you can add a review comment to add it with the same PR if it's different?

PR : https://github.com/python/cpython/pull/9787

Thanks
History
Date User Action Args
2018-11-01 18:42:49davidaksetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request9598
2018-11-01 18:16:46xtreaksetnosy: + xtreak
messages: + msg329085
2018-11-01 17:12:45serhiy.storchakasetkeywords: + easy
stage: needs patch
type: enhancement
versions: + Python 3.8
2018-11-01 16:45:34davidakcreate