We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d668e6 commit fd8ca83Copy full SHA for fd8ca83
Objects/unicodeobject.c
@@ -309,9 +309,12 @@ init_global_interned_strings(PyInterpreterState *interp)
309
{
310
assert(INTERNED_STRINGS == NULL);
311
_Py_hashtable_allocator_t hashtable_alloc = {PyMem_RawMalloc, PyMem_RawFree};
312
+
313
INTERNED_STRINGS = _Py_hashtable_new_full(
314
hashtable_unicode_hash,
315
hashtable_unicode_compare,
316
+ // Objects stored here are immortal and statically allocated,
317
+ // so we don't need key_destroy_func & value_destroy_func:
318
NULL,
319
320
&hashtable_alloc
0 commit comments