[issue17414] timeit.timeit not in __all__ even though documented

Chris Angelico report at bugs.python.org
Thu Mar 14 09:14:50 CET 2013


New submission from Chris Angelico:

The timeit module is commonly used via the convenience function timeit.timeit, which is listed in the documentation as the recommended "Python Interface":
http://docs.python.org/3/library/timeit.html

However, this function is not listed in __all__, meaning that it does not come up in IDLE when Ctrl-Space is pressed. It is also not mentioned in the module docstring, which says "Library usage: see the Timer class.".

Same applies to timeit.repeat(), save that it's not as commonly used. Both are listed in the online docs but not in the docstring or __all__.

----------
components: Library (Lib)
messages: 184147
nosy: Rosuav, terry.reedy
priority: normal
severity: normal
status: open
title: timeit.timeit not in __all__ even though documented
type: enhancement
versions: Python 2.6, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17414>
_______________________________________


More information about the Python-bugs-list mailing list