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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2016-04-07.06:18:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460009897.32.0.801268253531.issue26708@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch adds the "const" qualifier to char and wchar_t pointers in the posix module to prevents possible bugs. These pointers point to internal data of PyBytes or PyUnicode objects or to C string literals, and unintentional changing the content is a hard bug. I expect that the patch can also eliminate some compiler warnings.

Since large part of the code is Windows specific, the patch needs to be tested on Windows.
History
Date User Action Args
2016-04-07 06:18:17serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2016-04-07 06:18:17serhiy.storchakasetmessageid: <1460009897.32.0.801268253531.issue26708@psf.upfronthosting.co.za>
2016-04-07 06:18:17serhiy.storchakalinkissue26708 messages
2016-04-07 06:18:16serhiy.storchakacreate