[New-bugs-announce] [issue36642] make unicodedata "const"

Inada Naoki report at bugs.python.org
Tue Apr 16 08:49:58 EDT 2019


New submission from Inada Naoki <songofacandy at gmail.com>:

diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py
index 9327693a17..2550b8f940 100644
--- a/Tools/unicode/makeunicodedata.py
+++ b/Tools/unicode/makeunicodedata.py
@@ -1249,7 +1249,7 @@ class Array:
         size = getsize(self.data)
         if trace:
             print(self.name+":", size*len(self.data), "bytes", file=sys.stderr)
-        file.write("static ")
+        file.write("static const ")
         if size == 1:
             file.write("unsigned char")
         elif size == 2:

----------
components: Unicode
messages: 340336
nosy: benjamin.peterson, ezio.melotti, inada.naoki, vstinner
priority: normal
severity: normal
status: open
title: make unicodedata "const"
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36642>
_______________________________________


More information about the New-bugs-announce mailing list