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.

Title: PyLong_FromString drops const
Type: security Stage: resolved
Components: Interpreter Core Versions: Python 3.4
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: h.venev, serhiy.storchaka
Priority: normal Keywords:

Created on 2014-07-03 07:09 by h.venev, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg222152 - (view) Author: Hristo Venev (h.venev) * Date: 2014-07-03 07:09
PyObject* PyLong_FromString(const char *str, char **pend, int base)

pend should be const char**

I think casting const away when not required should be a crime punishable by imprisonment.
msg227942 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-09-30 14:57
PyLong_FromString() is consistent with standard C functions strtol(), strtod(), etc. Changing pend's type to "const char**" is backward incompatible.
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 66108
2014-09-30 14:57:51serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg227942

resolution: not a bug
stage: resolved
2014-07-03 07:10:57h.venevsettype: security
components: + Interpreter Core
versions: + Python 3.4
2014-07-03 07:09:19h.venevcreate