This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python docs on 9.2 Math module lists math.log2 as function but it does not exist
Type: Stage: resolved
Components: Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: PyRW, abarry, docs@python, mark.dickinson, rhettinger
Priority: normal Keywords:

Created on 2016-08-28 03:38 by PyRW, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
docbugmathlog2.jpg PyRW, 2016-08-28 03:45
Messages (3)
msg273805 - (view) Author: Anilyka Barry (abarry) * (Python triager) Date: 2016-08-28 04:24
The function does definitely exist for me. Please make sure your Python version is up-to-date. Also, please post a short summary of the issue, and avoid screenshots whenever possible; it's more work for you, makes it harder for us to reproduce/follow (need to manually type everything back), and makes it impossible for the blind and visually impaired to participate. Thanks!
msg273812 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-08-28 07:31
Also, check your Python version to make sure that you're running Python 3.3 or later.
msg273871 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2016-08-29 16:42
Closing. The docs are correct for the corresponding version of Python: math.log2 is new in Python 3.3, and the entry for math.log2 is there in Python 3.3 but not Python 3.2 or Python 2.7.

@PyRW: It looks as though this is simply a version mismatch (looking at the wrong docs for the Python version you're using). If you double check `sys.version` and find that math.log2 still appears to be missing even on Python >= 3.3, feel free to reopen this issue with more information.
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 72069
2016-08-29 16:42:08mark.dickinsonsetstatus: pending -> closed

nosy: + mark.dickinson
messages: + msg273871

resolution: not a bug
stage: resolved
2016-08-28 09:37:33serhiy.storchakasetstatus: open -> pending
2016-08-28 07:31:35rhettingersetstatus: pending -> open
nosy: + rhettinger
messages: + msg273812

2016-08-28 04:24:55abarrysetstatus: open -> pending

nosy: + abarry
messages: + msg273805

assignee: docs@python ->
components: - Documentation
2016-08-28 03:45:54PyRWsetfiles: + docbugmathlog2.jpg
2016-08-28 03:43:45PyRWsettitle: Python docs on 9.52 Math module lists math.log2 as function but it does not exist -> Python docs on 9.2 Math module lists math.log2 as function but it does not exist
2016-08-28 03:43:24PyRWsettitle: Python docs on 3.52 Math module lists math.log2 as function but it does not exist -> Python docs on 9.52 Math module lists math.log2 as function but it does not exist
2016-08-28 03:38:06PyRWcreate