Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2017-12-07.13:54:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Py_SetProgramName() and Py_SetPythonHome() take a pointer to a string that shouldn't be changed for the duration of the program's execution. But the type of their arguments is "wchar_t *", therefore passing just a pointer to a constant static string will cause a compiler warning. The proposed PR changes the type to "const wchar_t *". This is backward compatible change.

The PR also adds the const qualifier to internal pointers that point on to unmodifiable strings. This could help to distinguish them from pointers on modifiable strings and can prevent unintentional modifications.
Date User Action Args
2017-12-07 13:54:04serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2017-12-07 13:54:04serhiy.storchakasetmessageid: <>
2017-12-07 13:54:04serhiy.storchakalinkissue32241 messages
2017-12-07 13:54:04serhiy.storchakacreate