Title: Cleanup Modules/_math.c
Type: Stage:
Components: Versions: Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, mark.dickinson, python-dev, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2016-09-23 09:59 by vstinner, last changed 2016-10-18 14:33 by vstinner. This issue is now closed.

File name Uploaded Description Edit
math.patch vstinner, 2016-09-23 09:59 review
Messages (4)
msg277266 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-09-23 09:59
On a code coverage report, I noticed that _math.c has a very bad coverage. In fact, we define dead code when the system provides most required math functions.

Attached patch avoids declaring unused functions.

See the coverage at:
msg277276 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2016-09-23 13:21
It think you have the #ifdef checks reversed, e.g. #ifdef HAVE_ACOSH instead of #ifndef HAVE_ACOSH.
msg278883 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-10-18 14:32
New changeset 8999d702ac29 by Victor Stinner in branch 'default':
Issue #28256: Cleanup _math.c
msg278884 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-10-18 14:33
Thanks for the review Serhiy and Christian, it seems like a review was needed :-D

I pushed my fix to Python 3.7.
Date User Action Args
2016-10-18 14:33:01vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg278884
2016-10-18 14:32:07python-devsetnosy: + python-dev
messages: + msg278883
2016-09-23 14:24:12serhiy.storchakasetnosy: + serhiy.storchaka
2016-09-23 13:21:40christian.heimessetmessages: + msg277276
2016-09-23 09:59:22vstinnercreate