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 <1434054292.35.0.944686887599.issue24436@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2015-06-11 20:24:52mic-esetrecipients: + mic-e
2015-06-11 20:24:52mic-esetmessageid: <1434054292.35.0.944686887599.issue24436@psf.upfronthosting.co.za>
2015-06-11 20:24:52mic-elinkissue24436 messages
2015-06-11 20:24:52mic-ecreate