New submission from Serhiy Storchaka: Currently _Py_PackageContext has type "char *". But it is either NULL or a pointer to internal readonly UTF-8 representation of Unicode object. Adding the const qualifier makes it clear that the data is immutable. I don't think this change will break third-party code.
---------- components: Interpreter Core files: _Py_PackageContext-const.patch keywords: patch messages: 281256 nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Make _Py_PackageContext of type "const char *" type: enhancement versions: Python 3.7 Added file: http://bugs.python.org/file45556/_Py_PackageContext-const.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28748> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com