[New-bugs-announce] [issue26476] Constness in _PyErr_BadInternalCall

Jeroen Demeyer report at bugs.python.org
Thu Mar 3 05:25:31 EST 2016


New submission from Jeroen Demeyer:

PyErr_BadInternalCall() calls _PyErr_BadInternalCall(__FILE__, __LINE__). Since __FILE__ is a string constant, the first argument of _PyErr_BadInternalCall should be a "const char*" instead of a "char*".

This is a follow-up to #4949. Most of the patch from #4949 was applied, but not the change to _PyErr_BadInternalCall on Python 2.

----------
components: Interpreter Core
files: PyErr_BadInternalCall_const.patch
keywords: patch
messages: 261156
nosy: jdemeyer
priority: normal
severity: normal
status: open
title: Constness in _PyErr_BadInternalCall
versions: Python 2.7
Added file: http://bugs.python.org/file42068/PyErr_BadInternalCall_const.patch

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


More information about the New-bugs-announce mailing list