[issue28748] Make _Py_PackageContext of type "const char *"

Serhiy Storchaka report at bugs.python.org
Sun Nov 20 04:32:00 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28748>
_______________________________________


More information about the Python-bugs-list mailing list