Message245185
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:52 | mic-e | set | recipients:
+ mic-e |
2015-06-11 20:24:52 | mic-e | set | messageid: <1434054292.35.0.944686887599.issue24436@psf.upfronthosting.co.za> |
2015-06-11 20:24:52 | mic-e | link | issue24436 messages |
2015-06-11 20:24:52 | mic-e | create | |
|