Skip to content

Commit b6c2c3a

Browse files
Update Modules/unicodedata.c
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 3ccadc9 commit b6c2c3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ capi_getcode(const char* name, int namelen, Py_UCS4* code,
15461546
static PyObject *
15471547
unicodedata_create_capi(void)
15481548
{
1549-
// Static storage so cached pointers stay valid after unicodedata
1549+
// Statically allocated so that any cached pointers stay valid after unicodedata
15501550
// is removed from sys.modules and the capsule is gc'd (gh-149449).
15511551
static _PyUnicode_Name_CAPI capi = {
15521552
.getname = capi_getucname,

0 commit comments

Comments
 (0)