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.

Author mic-e
Recipients mic-e
Date 2015-06-11.20:24:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The prototype for the public API function _PyTraceback_Add is declared

_PyTraceback_Add(char *, char *, int);

Internally, its char * arguments are passed verbatim to PyCode_NewEmpty, which takes const char * arguments.

The missing 'const' qualifier for the arguments of _PyTraceback_Add thus serves no purpose, and means that C++ code can't invoke the method with const char * arguments.

I've attached a proposed patch.

I can't think of any negative consequences from adding the 'const' qualifier (famous last words).
Date User Action Args
2015-06-11 20:24:52mic-esetrecipients: + mic-e
2015-06-11 20:24:52mic-esetmessageid: <>
2015-06-11 20:24:52mic-elinkissue24436 messages
2015-06-11 20:24:52mic-ecreate