mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-47084: Clear Unicode cached representations on finalization (GH-32032)
This commit is contained in:
parent
7d810b6a4e
commit
88872a29f1
5 changed files with 78 additions and 18 deletions
|
@ -185,6 +185,7 @@ class Printer:
|
|||
else:
|
||||
self.write("PyCompactUnicodeObject _compact;")
|
||||
self.write(f"{datatype} _data[{len(s)+1}];")
|
||||
self.deallocs.append(f"_PyStaticUnicode_Dealloc((PyObject *)&{name});")
|
||||
with self.block(f"{name} =", ";"):
|
||||
if ascii:
|
||||
with self.block("._ascii =", ","):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue